PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.7.0
Block Animations, Motion & Scroll Effects – Ghost Kit v3.7.0
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / build / assets / js / main.js

main.js in Block Animations, Motion & Scroll Effects – Ghost Kit 3.7.0, at build/assets/js/main.js

1 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";const{GHOSTKIT:n}=window,{events:o}=n;o.trigger(document,"init.gkt");const t=function(n,o,t){var e,i=t||{},r=i.noTrailing,c=void 0!==r&&r,u=i.noLeading,a=void 0!==u&&u,d=i.debounceMode,l=void 0===d?void 0:d,v=!1,s=0;function m(){e&&clearTimeout(e)}function f(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];var u=this,d=Date.now()-s;function f(){s=Date.now(),o.apply(u,i)}function g(){e=void 0}v||(a||!l||e||f(),m(),void 0===l&&d>n?a?(s=Date.now(),c||(e=setTimeout(l?g:f,n))):f():!0!==c&&(e=setTimeout(l?g:f,void 0===l?n-d:n)))}return f.cancel=function(n){var o=(n||{}).upcomingOnly,t=void 0!==o&&o;m(),v=!t},f}(200,(e=()=>{o.trigger(document,"init.blocks.gkt")},i=[],r=null,(c=function(){for(var n=arguments.length,o=new Array(n),t=0;t<n;t++)o[t]=arguments[t];i=o,r||(r=requestAnimationFrame(function(){r=null,e.apply(void 0,i)}))}).cancel=function(){r&&(cancelAnimationFrame(r),r=null)},c));var e,i,r,c;new window.MutationObserver(t).observe(document.documentElement,{childList:!0,subtree:!0})})();