3 lines
3.3 KiB
JavaScript
3 lines
3.3 KiB
JavaScript
|
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("./foundation.core"),require("./foundation.core.utils"),require("jquery")):"function"==typeof define&&define.amd?define(["./foundation.core","./foundation.core.utils","jquery"],t):"object"==typeof exports?exports["foundation.util.motion"]=t(require("./foundation.core"),require("./foundation.core.utils"),require("jquery")):(n.__FOUNDATION_EXTERNAL__=n.__FOUNDATION_EXTERNAL__||{},n.__FOUNDATION_EXTERNAL__["foundation.util.motion"]=t(n.__FOUNDATION_EXTERNAL__["foundation.core"],n.__FOUNDATION_EXTERNAL__["foundation.core"],n.jQuery))}(window,function(e,o,i){return function(e){var o={};function i(n){if(o[n])return o[n].exports;var t=o[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return i.m=e,i.c=o,i.d=function(n,t,e){i.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},i.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},i.t=function(t,n){if(1&n&&(t=i(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)i.d(e,o,function(n){return t[n]}.bind(null,o));return e},i.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(t,"a",t),t},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.p="",i(i.s=25)}({"./foundation.core":function(n,t){n.exports=e},"./foundation.core.utils":function(n,t){n.exports=o},"./js/entries/plugins/foundation.util.motion.js":function(n,t,e){"use strict";e.r(t);var o=e("./foundation.core");e.d(t,"Foundation",function(){return o.Foundation});var i=e("./js/foundation.util.motion.js");e.d(t,"Motion",function(){return i.Motion}),e.d(t,"Move",function(){return i.Move}),o.Foundation.Motion=i.Motion,o.Foundation.Move=i.Move},"./js/foundation.util.motion.js":function(n,t,e){"use strict";e.r(t),e.d(t,"Move",function(){return r}),e.d(t,"Motion",function(){return i});var o=e("jquery"),a=e.n(o),f=e("./foundation.core.utils"),c=["mui-enter","mui-leave"],d=["mui-enter-active","mui-leave-active"],i={animateIn:function(n,t,e){u(!0,n,t,e)},animateOut:function(n,t,e){u(!1,n,t,e)}};function r(e,o,i){var r,u,a=null;if(0===e)return i.apply(o),void o.trigger("finished.zf.animate",[o]).triggerHandler("finished.zf.animate",[o]);r=window.requestAnimationFrame(function n(t){a||(a=t),u=t-a,i.apply(o),u<e?r=window.requestAnimationFrame(n,o):(window.cancelAnimationFrame(r),o.trigger("finished.zf.animate",[o]).triggerHandler("finished.zf.animate",[o]))})}function u(n,t,e,o){if((t=a()(t).eq(0)).length){var i=n?c[0]:c[1],r=n?d[0]:d[1];u(),t.addClass(e).css("transition","none"),requestAnimationFrame(function(){t.addClass(i),n&&t.show()}),requestAnimationFrame(function(){t[0].offsetWidth,t.css("transition","").addClass(r)}),t.one(Object(f.transitionend)(t),function(){n||t.hide();u(),o&&o.apply(t)})}function u(){t[0].style.transitionDuration=0,t.removeClass("".concat(i," ").concat(r," ").concat(e))}}},25:function(n,t,e){n.exports=e("./js/entries/plugins/foundation.util.motion.js")},jquery:function(n,t){n.exports=i}})});
|
||
|
//# sourceMappingURL=foundation.util.motion.min.js.map
|