src/ZKEACMS.Animation/Scripts/animate.min.js
(完整代码) 1KB(function(){this.animation=function(){function n(n){this.default={selector:".widget:not(.no-animate)",animated:"animate__animated",animation:"animate__fadeInUp"};Object.assign(this.default,n)}return n.prototype.doAnimate=function(){for(let n=0;n<this.elements.length;n++){const t=this.elements[n];Number(t.dataset.offsetTop)<=window.scrollY+window.innerHeight&&(t.style.setProperty("animation-play-state",null),this.elements.splice(n,1),n--)}},n.prototype.init=function(){function u(){n.doAnimate.call(n)}var t,r,i,n;this.elements=[];t=document.querySelectorAll(this.default.selector);r=document.body.clientHeight;for(let n=0;n<t.length;n++){const u=t[n];i=u.getBoundingClientRect();i.top>window.innerHeight&&u.offsetTop+u.clientHeight+50<r&&(u.dataset.offsetTop=i.top,u.style.setProperty("animation-play-state","paused"),u.classList.add(this.default.animated,this.default.animation),u.addEventListener("animationend",function(){for(var n=0;n<this.classList.length;n++)this.classList[n].startsWith("animate__")&&(this.classList.remove(this.classList[n]),this.removeAttribute("data-offset-top"),n--)}),this.elements.push(u))}n=this;window.addEventListener("scroll",function(){n.animationTime&&clearTimeout(n.animationTime);n.animationTime=setTimeout(u,50)})},n}()}).call(this);setTimeout(function(){(new animation).init()},100);
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。