Skip to content

Instantly share code, notes, and snippets.

@danro

danro/usage.html Secret

Last active Aug 29, 2015
Embed
What would you like to do?
Webflow.js custom build - interactions only
<!-- jQuery -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Custom Webflow IX build -->
<script type="text/javascript" src="webflow-ix-min.js"></script>
<!-- Webflow IX config taken from original webflow.js -->
<script type="text/javascript">
Webflow.require('ix').init([
{"slug":"my-interaction", ... },
{"slug":"another-one", ... }}
]);
</script>
<!-- Closing body tag -->
</body>
/*!
* Webflow: Front-end site library
* @license MIT
* Inline scripts may access the api using an async handler:
* var Webflow = Webflow || [];
* Webflow.push(readyFunction);
*/
!function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="/",e(0)}([function(t,e,n){n(4),t.exports=n(1)},function(t,e,n){"use strict";function i(t){u.env()&&(v(t.design)&&d.on("__wf_design",t.design),v(t.preview)&&d.on("__wf_preview",t.preview)),v(t.destroy)&&d.on("__wf_destroy",t.destroy),t.ready&&v(t.ready)&&(m?t.ready():h.push(t.ready))}function r(t){v(t.design)&&d.off("__wf_design",t.design),v(t.preview)&&d.off("__wf_preview",t.preview),v(t.destroy)&&d.off("__wf_destroy",t.destroy),m||(h=w.filter(h,function(e){return e!==t.ready}))}function s(t,e){var n=[],i={};return i.up=w.throttle(function(t){w.each(n,function(e){e(t)})}),t&&e&&t.on(e,i.up),i.on=function(t){"function"==typeof t&&(w.contains(n,t)||n.push(t))},i.off=function(t){return arguments.length?void(n=w.filter(n,function(e){return e!==t})):void(n=[])},i}function o(t){v(t)&&t()}function a(){A&&(A.reject(),d.off("load",A.resolve)),A=new f.Deferred,d.on("load",A.resolve)}var u={},c={},h=[],l=window.Webflow||[],f=window.jQuery,d=f(window),p=f(document),v=f.isFunction,w=u._=n(5),g=n(2)&&f.tram,m=!1,b=window.Modernizr;g.config.hideBackface=!1,g.config.keepInherited=!0,u.define=function(t,e){c[t]&&r(c[t]);var n=c[t]=e(f,w)||{};return i(n),n},u.require=function(t){return c[t]},u.push=function(t){return m?void(v(t)&&t()):void l.push(t)},u.env=function(t){var e=window.__wf_design,n="undefined"!=typeof e;return t?"design"===t?n&&e:"preview"===t?n&&!e:"slug"===t?n&&window.__wf_slug:"editor"===t?window.WebflowEditor:"test"===t?window.__wf_test:void 0:n};var y=navigator.userAgent.toLowerCase(),_=navigator.appVersion.toLowerCase(),x=u.env.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,k=u.env.chrome=/chrome/.test(y)&&/Google/.test(navigator.vendor)&&parseInt(_.match(/chrome\/(\d+)\./)[1],10),z=u.env.ios=b&&b.ios;u.env.safari=/safari/.test(y)&&!k&&!z;var q;x&&p.on("touchstart mousedown",function(t){q=t.target}),u.validClick=x?function(t){return t===q||f.contains(t,q)}:function(){return!0};var O="resize.webflow orientationchange.webflow load.webflow",T="scroll.webflow "+O;if(u.resize=s(d,O),u.scroll=s(d,T),u.redraw=s(),u.location=function(t){window.location=t},u.app=u.env()?{}:null,u.app){var j=new Event("__wf_redraw");u.app.redrawElement=function(t,e){e.dispatchEvent(j)},u.location=function(t){window.dispatchEvent(new CustomEvent("__wf_location",{detail:t}))}}u.ready=function(){m=!0,w.each(h.concat(l),o),u.resize.up()};var A;u.load=function(t){A.then(t)},u.destroy=function(){d.triggerHandler("__wf_destroy"),w.each(c,r),c={},u.resize.off(),u.scroll.off(),u.redraw.off(),"pending"===A.state()&&a()},f(u.ready),a(),t.exports=window.Webflow=u},function(t,e){/*!
* tram.js v0.8.1-global
* Cross-browser CSS3 transitions in JavaScript
* https://github.com/bkwld/tram
* MIT License
*/
window.tram=function(t){function e(t,e){var n=new F.Bare;return n.init(t,e)}function n(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}function i(t){var e=parseInt(t.slice(1),16),n=e>>16&255,i=e>>8&255,r=255&e;return[n,i,r]}function r(t,e,n){return"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1)}function s(){}function o(t,e){K("Type warning: Expected: ["+t+"] Got: ["+typeof e+"] "+e)}function a(t,e,n){K("Units do not match ["+t+"]: "+e+", "+n)}function u(t,e,n){if(void 0!==e&&(n=e),void 0===t)return n;var i=n;return V.test(t)||!J.test(t)?i=parseInt(t,10):J.test(t)&&(i=1e3*parseFloat(t)),0>i&&(i=0),i===i?i:n}function c(t){for(var e=-1,n=t?t.length:0,i=[];++e<n;){var r=t[e];r&&i.push(r)}return i}var h=function(t,e,n){function i(t){return"object"==typeof t}function r(t){return"function"==typeof t}function s(){}function o(a,u){function c(){var t=new h;return r(t.init)&&t.init.apply(t,arguments),t}function h(){}u===n&&(u=a,a=Object),c.Bare=h;var l,f=s[t]=a[t],d=h[t]=c[t]=new s;return d.constructor=c,c.mixin=function(e){return h[t]=c[t]=o(c,e)[t],c},c.open=function(t){if(l={},r(t)?l=t.call(c,d,f,c,a):i(t)&&(l=t),i(l))for(var n in l)e.call(l,n)&&(d[n]=l[n]);return r(d.init)||(d.init=a),c},c.open(u)}return o}("prototype",{}.hasOwnProperty),l={ease:["ease",function(t,e,n,i){var r=(t/=i)*t,s=r*t;return e+n*(-2.75*s*r+11*r*r+-15.5*s+8*r+.25*t)}],"ease-in":["ease-in",function(t,e,n,i){var r=(t/=i)*t,s=r*t;return e+n*(-1*s*r+3*r*r+-3*s+2*r)}],"ease-out":["ease-out",function(t,e,n,i){var r=(t/=i)*t,s=r*t;return e+n*(.3*s*r+-1.6*r*r+2.2*s+-1.8*r+1.9*t)}],"ease-in-out":["ease-in-out",function(t,e,n,i){var r=(t/=i)*t,s=r*t;return e+n*(2*s*r+-5*r*r+2*s+2*r)}],linear:["linear",function(t,e,n,i){return n*t/i+e}],"ease-in-quad":["cubic-bezier(0.550, 0.085, 0.680, 0.530)",function(t,e,n,i){return n*(t/=i)*t+e}],"ease-out-quad":["cubic-bezier(0.250, 0.460, 0.450, 0.940)",function(t,e,n,i){return-n*(t/=i)*(t-2)+e}],"ease-in-out-quad":["cubic-bezier(0.455, 0.030, 0.515, 0.955)",function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e}],"ease-in-cubic":["cubic-bezier(0.550, 0.055, 0.675, 0.190)",function(t,e,n,i){return n*(t/=i)*t*t+e}],"ease-out-cubic":["cubic-bezier(0.215, 0.610, 0.355, 1)",function(t,e,n,i){return n*((t=t/i-1)*t*t+1)+e}],"ease-in-out-cubic":["cubic-bezier(0.645, 0.045, 0.355, 1)",function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e}],"ease-in-quart":["cubic-bezier(0.895, 0.030, 0.685, 0.220)",function(t,e,n,i){return n*(t/=i)*t*t*t+e}],"ease-out-quart":["cubic-bezier(0.165, 0.840, 0.440, 1)",function(t,e,n,i){return-n*((t=t/i-1)*t*t*t-1)+e}],"ease-in-out-quart":["cubic-bezier(0.770, 0, 0.175, 1)",function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e}],"ease-in-quint":["cubic-bezier(0.755, 0.050, 0.855, 0.060)",function(t,e,n,i){return n*(t/=i)*t*t*t*t+e}],"ease-out-quint":["cubic-bezier(0.230, 1, 0.320, 1)",function(t,e,n,i){return n*((t=t/i-1)*t*t*t*t+1)+e}],"ease-in-out-quint":["cubic-bezier(0.860, 0, 0.070, 1)",function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e}],"ease-in-sine":["cubic-bezier(0.470, 0, 0.745, 0.715)",function(t,e,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+e}],"ease-out-sine":["cubic-bezier(0.390, 0.575, 0.565, 1)",function(t,e,n,i){return n*Math.sin(t/i*(Math.PI/2))+e}],"ease-in-out-sine":["cubic-bezier(0.445, 0.050, 0.550, 0.950)",function(t,e,n,i){return-n/2*(Math.cos(Math.PI*t/i)-1)+e}],"ease-in-expo":["cubic-bezier(0.950, 0.050, 0.795, 0.035)",function(t,e,n,i){return 0===t?e:n*Math.pow(2,10*(t/i-1))+e}],"ease-out-expo":["cubic-bezier(0.190, 1, 0.220, 1)",function(t,e,n,i){return t===i?e+n:n*(-Math.pow(2,-10*t/i)+1)+e}],"ease-in-out-expo":["cubic-bezier(1, 0, 0, 1)",function(t,e,n,i){return 0===t?e:t===i?e+n:(t/=i/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(-Math.pow(2,-10*--t)+2)+e}],"ease-in-circ":["cubic-bezier(0.600, 0.040, 0.980, 0.335)",function(t,e,n,i){return-n*(Math.sqrt(1-(t/=i)*t)-1)+e}],"ease-out-circ":["cubic-bezier(0.075, 0.820, 0.165, 1)",function(t,e,n,i){return n*Math.sqrt(1-(t=t/i-1)*t)+e}],"ease-in-out-circ":["cubic-bezier(0.785, 0.135, 0.150, 0.860)",function(t,e,n,i){return(t/=i/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e}],"ease-in-back":["cubic-bezier(0.600, -0.280, 0.735, 0.045)",function(t,e,n,i,r){return void 0===r&&(r=1.70158),n*(t/=i)*t*((r+1)*t-r)+e}],"ease-out-back":["cubic-bezier(0.175, 0.885, 0.320, 1.275)",function(t,e,n,i,r){return void 0===r&&(r=1.70158),n*((t=t/i-1)*t*((r+1)*t+r)+1)+e}],"ease-in-out-back":["cubic-bezier(0.680, -0.550, 0.265, 1.550)",function(t,e,n,i,r){return void 0===r&&(r=1.70158),(t/=i/2)<1?n/2*t*t*(((r*=1.525)+1)*t-r)+e:n/2*((t-=2)*t*(((r*=1.525)+1)*t+r)+2)+e}]},f={"ease-in-back":"cubic-bezier(0.600, 0, 0.735, 0.045)","ease-out-back":"cubic-bezier(0.175, 0.885, 0.320, 1)","ease-in-out-back":"cubic-bezier(0.680, 0, 0.265, 1)"},d=document,p=window,v="bkwld-tram",w=/[\-\.0-9]/g,g=/[A-Z]/,m="number",b=/^(rgb|#)/,y=/(em|cm|mm|in|pt|pc|px)$/,_=/(em|cm|mm|in|pt|pc|px|%)$/,x=/(deg|rad|turn)$/,k="unitless",z=/(all|none) 0s ease 0s/,q=/^(width|height)$/,O=" ",T=d.createElement("a"),j=["Webkit","Moz","O","ms"],A=["-webkit-","-moz-","-o-","-ms-"],B=function(t){if(t in T.style)return{dom:t,css:t};var e,n,i="",r=t.split("-");for(e=0;e<r.length;e++)i+=r[e].charAt(0).toUpperCase()+r[e].slice(1);for(e=0;e<j.length;e++)if(n=j[e]+i,n in T.style)return{dom:n,css:A[e]+t}},$=e.support={bind:Function.prototype.bind,transform:B("transform"),transition:B("transition"),backface:B("backface-visibility"),timing:B("transition-timing-function")};if($.transition){var R=$.timing.dom;if(T.style[R]=l["ease-in-back"][0],!T.style[R])for(var M in f)l[M][0]=f[M]}var E=e.frame=function(){var t=p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame;return t&&$.bind?t.bind(p):function(t){p.setTimeout(t,16)}}(),I=e.now=function(){var t=p.performance,e=t&&(t.now||t.webkitNow||t.msNow||t.mozNow);return e&&$.bind?e.bind(t):Date.now||function(){return+new Date}}(),S=h(function(e){function i(t,e){var n=c((""+t).split(O)),i=n[0];e=e||{};var r=Y[i];if(!r)return K("Unsupported property: "+i);if(!e.weak||!this.props[i]){var s=r[0],o=this.props[i];return o||(o=this.props[i]=new s.Bare),o.init(this.$el,n,r,e),o}}function r(t,e,n){if(t){var r=typeof t;if(e||(this.timer&&this.timer.destroy(),this.queue=[],this.active=!1),"number"==r&&e)return this.timer=new G({duration:t,context:this,complete:a}),void(this.active=!0);if("string"==r&&e){switch(t){case"hide":d.call(this);break;case"stop":h.call(this);break;case"redraw":p.call(this);break;default:i.call(this,t,n&&n[1])}return a.call(this)}if("function"==r)return void t.call(this,this);if("object"==r){var s=0;b.call(this,t,function(t,e){t.span>s&&(s=t.span),t.stop(),t.animate(e)},function(t){"wait"in t&&(s=u(t.wait,0))}),m.call(this),s>0&&(this.timer=new G({duration:s,context:this}),this.active=!0,e&&(this.timer.complete=a));var o=this,c=!1,l={};E(function(){b.call(o,t,function(t){t.active&&(c=!0,l[t.name]=t.nextStyle)}),c&&o.$el.css(l)})}}}function s(t){t=u(t,0),this.active?this.queue.push({options:t}):(this.timer=new G({duration:t,context:this,complete:a}),this.active=!0)}function o(t){return this.active?(this.queue.push({options:t,args:arguments}),void(this.timer.complete=a)):K("No active transition timer. Use start() or wait() before then().")}function a(){if(this.timer&&this.timer.destroy(),this.active=!1,this.queue.length){var t=this.queue.shift();r.call(this,t.options,!0,t.args)}}function h(t){this.timer&&this.timer.destroy(),this.queue=[],this.active=!1;var e;"string"==typeof t?(e={},e[t]=1):e="object"==typeof t&&null!=t?t:this.props,b.call(this,e,y),m.call(this)}function l(t){h.call(this,t),b.call(this,t,_,x)}function f(t){"string"!=typeof t&&(t="block"),this.el.style.display=t}function d(){h.call(this),this.el.style.display="none"}function p(){this.el.offsetHeight}function w(){h.call(this),t.removeData(this.el,v),this.$el=this.el=null}function m(){var t,e,n=[];this.upstream&&n.push(this.upstream);for(t in this.props)e=this.props[t],e.active&&n.push(e.string);n=n.join(","),this.style!==n&&(this.style=n,this.el.style[$.transition.dom]=n)}function b(t,e,r){var s,o,a,u,c=e!==y,h={};for(s in t)a=t[s],s in Q?(h.transform||(h.transform={}),h.transform[s]=a):(g.test(s)&&(s=n(s)),s in Y?h[s]=a:(u||(u={}),u[s]=a));for(s in h){if(a=h[s],o=this.props[s],!o){if(!c)continue;o=i.call(this,s)}e.call(this,o,a)}r&&u&&r.call(this,u)}function y(t){t.stop()}function _(t,e){t.set(e)}function x(t){this.$el.css(t)}function k(t,n){e[t]=function(){return this.children?q.call(this,n,arguments):(this.el&&n.apply(this,arguments),this)}}function q(t,e){var n,i=this.children.length;for(n=0;i>n;n++)t.apply(this.children[n],e);return this}e.init=function(e){if(this.$el=t(e),this.el=this.$el[0],this.props={},this.queue=[],this.style="",this.active=!1,W.keepInherited&&!W.fallback){var n=L(this.el,"transition");n&&!z.test(n)&&(this.upstream=n)}$.backface&&W.hideBackface&&Z(this.el,$.backface.css,"hidden")},k("add",i),k("start",r),k("wait",s),k("then",o),k("next",a),k("stop",h),k("set",l),k("show",f),k("hide",d),k("redraw",p),k("destroy",w)}),F=h(S,function(e){function n(e,n){var i=t.data(e,v)||t.data(e,v,new S.Bare);return i.el||i.init(e),n?i.start(n):i}e.init=function(e,i){var r=t(e);if(!r.length)return this;if(1===r.length)return n(r[0],i);var s=[];return r.each(function(t,e){s.push(n(e,i))}),this.children=s,this}}),D=h(function(t){function e(){var t=this.get();this.update("auto");var e=this.get();return this.update(t),e}function n(t,e,n){return void 0!==e&&(n=e),t in l?t:n}function i(t){var e=/rgba?\((\d+),\s*(\d+),\s*(\d+)/.exec(t);return(e?r(e[1],e[2],e[3]):t).replace(/#(\w)(\w)(\w)$/,"#$1$1$2$2$3$3")}var s={duration:500,ease:"ease",delay:0};t.init=function(t,e,i,r){this.$el=t,this.el=t[0];var o=e[0];i[2]&&(o=i[2]),X[o]&&(o=X[o]),this.name=o,this.type=i[1],this.duration=u(e[1],this.duration,s.duration),this.ease=n(e[2],this.ease,s.ease),this.delay=u(e[3],this.delay,s.delay),this.span=this.duration+this.delay,this.active=!1,this.nextStyle=null,this.auto=q.test(this.name),this.unit=r.unit||this.unit||W.defaultUnit,this.angle=r.angle||this.angle||W.defaultAngle,W.fallback||r.fallback?this.animate=this.fallback:(this.animate=this.transition,this.string=this.name+O+this.duration+"ms"+("ease"!=this.ease?O+l[this.ease][0]:"")+(this.delay?O+this.delay+"ms":""))},t.set=function(t){t=this.convert(t,this.type),this.update(t),this.redraw()},t.transition=function(t){this.active=!0,t=this.convert(t,this.type),this.auto&&("auto"==this.el.style[this.name]&&(this.update(this.get()),this.redraw()),"auto"==t&&(t=e.call(this))),this.nextStyle=t},t.fallback=function(t){var n=this.el.style[this.name]||this.convert(this.get(),this.type);t=this.convert(t,this.type),this.auto&&("auto"==n&&(n=this.convert(this.get(),this.type)),"auto"==t&&(t=e.call(this))),this.tween=new N({from:n,to:t,duration:this.duration,delay:this.delay,ease:this.ease,update:this.update,context:this})},t.get=function(){return L(this.el,this.name)},t.update=function(t){Z(this.el,this.name,t)},t.stop=function(){(this.active||this.nextStyle)&&(this.active=!1,this.nextStyle=null,Z(this.el,this.name,this.get()));var t=this.tween;t&&t.context&&t.destroy()},t.convert=function(t,e){if("auto"==t&&this.auto)return t;var n,r="number"==typeof t,s="string"==typeof t;switch(e){case m:if(r)return t;if(s&&""===t.replace(w,""))return+t;n="number(unitless)";break;case b:if(s){if(""===t&&this.original)return this.original;if(e.test(t))return"#"==t.charAt(0)&&7==t.length?t:i(t)}n="hex or rgb string";break;case y:if(r)return t+this.unit;if(s&&e.test(t))return t;n="number(px) or string(unit)";break;case _:if(r)return t+this.unit;if(s&&e.test(t))return t;n="number(px) or string(unit or %)";break;case x:if(r)return t+this.angle;if(s&&e.test(t))return t;n="number(deg) or string(angle)";break;case k:if(r)return t;if(s&&_.test(t))return t;n="number(unitless) or string(unit or %)"}return o(n,t),t},t.redraw=function(){this.el.offsetHeight}}),U=h(D,function(t,e){t.init=function(){e.init.apply(this,arguments),this.original||(this.original=this.convert(this.get(),b))}}),C=h(D,function(t,e){t.init=function(){e.init.apply(this,arguments),this.animate=this.fallback},t.get=function(){return this.$el[this.name]()},t.update=function(t){this.$el[this.name](t)}}),H=h(D,function(t,e){function n(t,e){var n,i,r,s,o;for(n in t)s=Q[n],r=s[0],i=s[1]||n,o=this.convert(t[n],r),e.call(this,i,o,r)}t.init=function(){e.init.apply(this,arguments),this.current||(this.current={},Q.perspective&&W.perspective&&(this.current.perspective=W.perspective,Z(this.el,this.name,this.style(this.current)),this.redraw()))},t.set=function(t){n.call(this,t,function(t,e){this.current[t]=e}),Z(this.el,this.name,this.style(this.current)),this.redraw()},t.transition=function(t){var e=this.values(t);this.tween=new P({current:this.current,values:e,duration:this.duration,delay:this.delay,ease:this.ease});var n,i={};for(n in this.current)i[n]=n in e?e[n]:this.current[n];this.active=!0,this.nextStyle=this.style(i)},t.fallback=function(t){var e=this.values(t);this.tween=new P({current:this.current,values:e,duration:this.duration,delay:this.delay,ease:this.ease,update:this.update,context:this})},t.update=function(){Z(this.el,this.name,this.style(this.current))},t.style=function(t){var e,n="";for(e in t)n+=e+"("+t[e]+") ";return n},t.values=function(t){var e,i={};return n.call(this,t,function(t,n,r){i[t]=n,void 0===this.current[t]&&(e=0,~t.indexOf("scale")&&(e=1),this.current[t]=this.convert(e,r))}),i}}),N=h(function(e){function n(t){1===d.push(t)&&E(o)}function o(){var t,e,n,i=d.length;if(i)for(E(o),e=I(),t=i;t--;)n=d[t],n&&n.render(e)}function u(e){var n,i=t.inArray(e,d);i>=0&&(n=d.slice(i+1),d.length=i,n.length&&(d=d.concat(n)))}function c(t){return Math.round(t*p)/p}function h(t,e,n){return r(t[0]+n*(e[0]-t[0]),t[1]+n*(e[1]-t[1]),t[2]+n*(e[2]-t[2]))}var f={ease:l.ease[1],from:0,to:1};e.init=function(t){this.duration=t.duration||0,this.delay=t.delay||0;var e=t.ease||f.ease;l[e]&&(e=l[e][1]),"function"!=typeof e&&(e=f.ease),this.ease=e,this.update=t.update||s,this.complete=t.complete||s,this.context=t.context||this,this.name=t.name;var n=t.from,i=t.to;void 0===n&&(n=f.from),void 0===i&&(i=f.to),this.unit=t.unit||"","number"==typeof n&&"number"==typeof i?(this.begin=n,this.change=i-n):this.format(i,n),this.value=this.begin+this.unit,this.start=I(),t.autoplay!==!1&&this.play()},e.play=function(){this.active||(this.start||(this.start=I()),this.active=!0,n(this))},e.stop=function(){this.active&&(this.active=!1,u(this))},e.render=function(t){var e,n=t-this.start;if(this.delay){if(n<=this.delay)return;n-=this.delay}if(n<this.duration){var i=this.ease(n,0,1,this.duration);return e=this.startRGB?h(this.startRGB,this.endRGB,i):c(this.begin+i*this.change),this.value=e+this.unit,void this.update.call(this.context,this.value)}e=this.endHex||this.begin+this.change,this.value=e+this.unit,this.update.call(this.context,this.value),this.complete.call(this.context),this.destroy()},e.format=function(t,e){if(e+="",t+="","#"==t.charAt(0))return this.startRGB=i(e),this.endRGB=i(t),this.endHex=t,this.begin=0,void(this.change=1);if(!this.unit){var n=e.replace(w,""),r=t.replace(w,"");n!==r&&a("tween",e,t),this.unit=n}e=parseFloat(e),t=parseFloat(t),this.begin=this.value=e,this.change=t-e},e.destroy=function(){this.stop(),this.context=null,this.ease=this.update=this.complete=s};var d=[],p=1e3}),G=h(N,function(t){t.init=function(t){this.duration=t.duration||0,this.complete=t.complete||s,this.context=t.context,this.play()},t.render=function(t){var e=t-this.start;e<this.duration||(this.complete.call(this.context),this.destroy())}}),P=h(N,function(t,e){t.init=function(t){this.context=t.context,this.update=t.update,this.tweens=[],this.current=t.current;var e,n;for(e in t.values)n=t.values[e],this.current[e]!==n&&this.tweens.push(new N({name:e,from:this.current[e],to:n,duration:t.duration,delay:t.delay,ease:t.ease,autoplay:!1}));this.play()},t.render=function(t){var e,n,i=this.tweens.length,r=!1;for(e=i;e--;)n=this.tweens[e],n.context&&(n.render(t),this.current[n.name]=n.value,r=!0);return r?void(this.update&&this.update.call(this.context)):this.destroy()},t.destroy=function(){if(e.destroy.call(this),this.tweens){var t,n=this.tweens.length;for(t=n;t--;)this.tweens[t].destroy();this.tweens=null,this.current=null}}}),W=e.config={defaultUnit:"px",defaultAngle:"deg",keepInherited:!1,hideBackface:!1,perspective:"",fallback:!$.transition,agentTests:[]};e.fallback=function(t){if(!$.transition)return W.fallback=!0;W.agentTests.push("("+t+")");var e=new RegExp(W.agentTests.join("|"),"i");W.fallback=e.test(navigator.userAgent)},e.fallback("6.0.[2-5] Safari"),e.tween=function(t){return new N(t)},e.delay=function(t,e,n){return new G({complete:e,duration:t,context:n})},t.fn.tram=function(t){return e.call(null,this,t)};var Z=t.style,L=t.css,X={transform:$.transform&&$.transform.css},Y={color:[U,b],background:[U,b,"background-color"],"outline-color":[U,b],"border-color":[U,b],"border-top-color":[U,b],"border-right-color":[U,b],"border-bottom-color":[U,b],"border-left-color":[U,b],"border-width":[D,y],"border-top-width":[D,y],"border-right-width":[D,y],"border-bottom-width":[D,y],"border-left-width":[D,y],"border-spacing":[D,y],"letter-spacing":[D,y],margin:[D,y],"margin-top":[D,y],"margin-right":[D,y],"margin-bottom":[D,y],"margin-left":[D,y],padding:[D,y],"padding-top":[D,y],"padding-right":[D,y],"padding-bottom":[D,y],"padding-left":[D,y],"outline-width":[D,y],opacity:[D,m],top:[D,_],right:[D,_],bottom:[D,_],left:[D,_],"font-size":[D,_],"text-indent":[D,_],"word-spacing":[D,_],width:[D,_],"min-width":[D,_],"max-width":[D,_],height:[D,_],"min-height":[D,_],"max-height":[D,_],"line-height":[D,k],"scroll-top":[C,m,"scrollTop"],"scroll-left":[C,m,"scrollLeft"]},Q={};$.transform&&(Y.transform=[H],Q={x:[_,"translateX"],y:[_,"translateY"],rotate:[x],rotateX:[x],rotateY:[x],scale:[m],scaleX:[m],scaleY:[m],skew:[x],skewX:[x],skewY:[x]}),$.transform&&$.backface&&(Q.z=[_,"translateZ"],Q.rotateZ=[x],Q.scaleZ=[m],Q.perspective=[y]);var V=/ms/,J=/s|\./,K=function(){var t="warn",e=window.console;return e&&e[t]?function(n){e[t](n)}:s}();return t.tram=e}(window.jQuery)},function(t,e){"use strict";var n=window.jQuery,i={},r=[],s=".w-ix",o={reset:function(t,e){e.__wf_intro=null},intro:function(t,e){e.__wf_intro||(e.__wf_intro=!0,n(e).triggerHandler(i.types.INTRO))},outro:function(t,e){e.__wf_intro&&(e.__wf_intro=null,n(e).triggerHandler(i.types.OUTRO))}};i.triggers={},i.types={INTRO:"w-ix-intro"+s,OUTRO:"w-ix-outro"+s},i.init=function(){for(var t=r.length,e=0;t>e;e++){var s=r[e];s[0](0,s[1])}r=[],n.extend(i.triggers,o)},i.async=function(){for(var t in o){var e=o[t];o.hasOwnProperty(t)&&(i.triggers[t]=function(t,n){r.push([e,n])})}},i.async(),t.exports=i},function(t,e,n){"use strict";var i=n(1),r=n(3);i.define("ix",t.exports=function(t,e){function n(t){t&&(A={},e.each(t,function(t){A[t.slug]=t.value}),s())}function s(){var e=t("[data-ix]");e.length&&(e.each(u),e.each(o),B.length&&(i.scroll.on(c),setTimeout(c,1)),$.length&&i.load(h),R.length&&setTimeout(l,1),r.init())}function o(n,s){var o=t(s),u=o.attr("data-ix"),c=A[u];if(c){var h=c.triggers;h&&(b.style(o,c.style),e.each(h,function(t){function e(){f(t,o,{group:"A"})}function n(){f(t,o,{group:"B"})}var s={},u=t.type,c=t.stepsB&&t.stepsB.length;if("load"===u)return void(t.preload&&!z?$.push(e):R.push(e));if("click"===u)return o.on("click"+_,function(e){i.validClick(e.currentTarget)&&("#"===o.attr("href")&&e.preventDefault(),f(t,o,{group:s.clicked?"B":"A"}),c&&(s.clicked=!s.clicked))}),void(j=j.add(o));if("hover"===u)return o.on("mouseenter"+_,e),o.on("mouseleave"+_,n),void(j=j.add(o));if("scroll"===u)return void B.push({el:o,trigger:t,state:{active:!1},offsetTop:a(t.offsetTop),offsetBot:a(t.offsetBot)});var h=M[u];if(h){var l=o.closest(h);return l.on(r.types.INTRO,e).on(r.types.OUTRO,n),void(j=j.add(l))}}))}}function a(t){if(!t)return 0;t+="";var e=parseInt(t,10);return e!==e?0:(t.indexOf("%")>0&&(e/=100,e>=1&&(e=.999)),e)}function u(e,n){t(n).off(_)}function c(){for(var t=y.scrollTop(),e=y.height(),n=B.length,i=0;n>i;i++){var r=B[i],s=r.el,o=r.trigger,a=o.stepsB&&o.stepsB.length,u=r.state,c=s.offset().top,h=s.outerHeight(),l=r.offsetTop,d=r.offsetBot;1>l&&l>0&&(l*=e),1>d&&d>0&&(d*=e);var p=c+h-l>=t&&t+e>=c+d;p!==u.active&&(p!==!1||a)&&(u.active=p,f(o,s,{group:p?"A":"B"}))}}function h(){for(var t=$.length,e=0;t>e;e++)$[e]()}function l(){for(var t=R.length,e=0;t>e;e++)R[e]()}function f(e,n,i,r){function s(){return u?f(e,n,i,!0):("auto"===p.width&&l.set({width:"auto"}),"auto"===p.height&&l.set({height:"auto"}),void(o&&o()))}i=i||{};var o=i.done;if(!g||i.force){var a=i.group||"A",u=e["loop"+a],c=e["steps"+a];if(c&&c.length){if(c.length<2&&(u=!1),!r){var h=e.selector;h&&(n=e.descend?n.find(h):e.siblings?n.siblings(h):t(h),z&&n.attr("data-ix-affect",1)),q&&n.addClass("w-ix-emptyfix")}for(var l=x(n),p={},v=0;v<c.length;v++)d(l,c[v],p);p.start?l.then(s):s()}}}function d(t,e,n){var r="add",s="start";n.start&&(r=s="then");var o=e.transition;if(o){o=o.split(",");for(var a=0;a<o.length;a++){var u=o[a],c=T.test(u)?{fallback:!0}:null;t[r](u,c)}}var h=w(e)||{};if(null!=h.width&&(n.width=h.width),null!=h.height&&(n.height=h.height),null==o){n.start?t.then(function(){var e=this.queue;this.set(h),h.display&&(t.redraw(),i.redraw.up()),this.queue=e,this.next()}):(t.set(h),h.display&&(t.redraw(),i.redraw.up()));var l=h.wait;null!=l&&(t.wait(l),n.start=!0)}else{if(h.display){var f=h.display;delete h.display,n.start?t.then(function(){var t=this.queue;this.set({display:f}).redraw(),i.redraw.up(),this.queue=t,this.next()}):(t.set({display:f}).redraw(),i.redraw.up())}t[s](h),n.start=!0}}function p(t,e){var n=x(t);t.css("transition","");var i=t.css("transition");i===O&&(i=n.upstream=null),n.upstream=O,n.set(w(e)),n.upstream=i}function v(t,e){x(t).set(w(e))}function w(t){var e={},n=!1;for(var i in t)"transition"!==i&&(e[i]=t[i],n=!0);return n?e:null}var g,m,b={},y=t(window),_=".w-ix",x=t.tram,k=i.env,z=k(),q=k.chrome&&k.chrome<35,O="none 0s ease 0s",T=/width|height/,j=t(),A={},B=[],$=[],R=[],M={tabs:".w-tab-link, .w-tab-pane",dropdown:".w-dropdown",slider:".w-slide",navbar:".w-nav"};return b.init=function(t){setTimeout(function(){n(t)},1)},b.preview=function(){g=!1,setTimeout(function(){n(window.__wf_ix)},1)},b.design=function(){g=!0,b.destroy()},b.destroy=function(){m=!0,j.each(u),i.scroll.off(c),r.async(),B=[],$=[],R=[]},b.ready=function(){A&&m&&(m=!1,s())},b.run=f,b.style=z?p:v,b})},function(t,e,n){"use strict";var i=window.$,r=n(2)&&i.tram;/*!
* Webflow._ (aka) Underscore.js 1.6.0 (custom build)
* _.each
* _.map
* _.find
* _.filter
* _.any
* _.contains
* _.delay
* _.defer
* _.throttle (webflow)
* _.debounce
* _.keys
* _.has
* _.now
*
* http://underscorejs.org
* (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Underscore may be freely distributed under the MIT license.
* @license MIT
*/
t.exports=function(){var t={};t.VERSION="1.6.0-Webflow";var e={},n=Array.prototype,i=Object.prototype,s=Function.prototype,o=(n.push,n.slice),a=(n.concat,i.toString,i.hasOwnProperty),u=n.forEach,c=n.map,h=(n.reduce,n.reduceRight,n.filter),l=(n.every,n.some),f=n.indexOf,d=(n.lastIndexOf,Array.isArray,Object.keys),p=(s.bind,t.each=t.forEach=function(n,i,r){if(null==n)return n;if(u&&n.forEach===u)n.forEach(i,r);else if(n.length===+n.length){for(var s=0,o=n.length;o>s;s++)if(i.call(r,n[s],s,n)===e)return}else for(var a=t.keys(n),s=0,o=a.length;o>s;s++)if(i.call(r,n[a[s]],a[s],n)===e)return;return n});t.map=t.collect=function(t,e,n){var i=[];return null==t?i:c&&t.map===c?t.map(e,n):(p(t,function(t,r,s){i.push(e.call(n,t,r,s))}),i)},t.find=t.detect=function(t,e,n){var i;return v(t,function(t,r,s){return e.call(n,t,r,s)?(i=t,!0):void 0}),i},t.filter=t.select=function(t,e,n){var i=[];return null==t?i:h&&t.filter===h?t.filter(e,n):(p(t,function(t,r,s){e.call(n,t,r,s)&&i.push(t)}),i)};var v=t.some=t.any=function(n,i,r){i||(i=t.identity);var s=!1;return null==n?s:l&&n.some===l?n.some(i,r):(p(n,function(t,n,o){return s||(s=i.call(r,t,n,o))?e:void 0}),!!s)};t.contains=t.include=function(t,e){return null==t?!1:f&&t.indexOf===f?-1!=t.indexOf(e):v(t,function(t){return t===e})},t.delay=function(t,e){var n=o.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},t.defer=function(e){return t.delay.apply(t,[e,1].concat(o.call(arguments,1)))},t.throttle=function(t){var e,n,i;return function(){e||(e=!0,n=arguments,i=this,r.frame(function(){e=!1,t.apply(i,n)}))}},t.debounce=function(e,n,i){var r,s,o,a,u,c=function(){var h=t.now()-a;n>h?r=setTimeout(c,n-h):(r=null,i||(u=e.apply(o,s),o=s=null))};return function(){o=this,s=arguments,a=t.now();var h=i&&!r;return r||(r=setTimeout(c,n)),h&&(u=e.apply(o,s),o=s=null),u}},t.defaults=function(e){if(!t.isObject(e))return e;for(var n=1,i=arguments.length;i>n;n++){var r=arguments[n];for(var s in r)void 0===e[s]&&(e[s]=r[s])}return e},t.keys=function(e){if(!t.isObject(e))return[];if(d)return d(e);var n=[];for(var i in e)t.has(e,i)&&n.push(i);return n},t.has=function(t,e){return a.call(t,e)},t.isObject=function(t){return t===Object(t)},t.now=Date.now||function(){return(new Date).getTime()},t.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var w=/(.)^/,g={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},m=/\\|'|\r|\n|\u2028|\u2029/g,b=function(t){return"\\"+g[t]};return t.template=function(e,n,i){!n&&i&&(n=i),n=t.defaults({},n,t.templateSettings);var r=RegExp([(n.escape||w).source,(n.interpolate||w).source,(n.evaluate||w).source].join("|")+"|$","g"),s=0,o="__p+='";e.replace(r,function(t,n,i,r,a){return o+=e.slice(s,a).replace(m,b),s=a+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":r&&(o+="';\n"+r+"\n__p+='"),t}),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(n.variable||"obj","_",o)}catch(u){throw u.source=o,u}var c=function(e){return a.call(this,e,t)},h=n.variable||"obj";return c.source="function("+h+"){\n"+o+"}",c},t}()}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment