All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.animations.slideUp.js Maven / Gradle / Ivy

"use strict";import T,{duration as B}from"./animate.js";const u=o=>{let i,a,r,d,n,s,p,g,e,l,y,m;const h=T({beforeStart:()=>{const t=o;i=getComputedStyle(t),a=parseFloat(i.paddingTop),r=parseFloat(i.paddingBottom),d=parseFloat(i.marginTop),n=parseFloat(i.marginBottom),s=parseFloat(i.height),p=t.style.overflow,g=t.style.paddingTop,e=t.style.paddingBottom,l=t.style.marginTop,y=t.style.marginBottom,m=t.style.height,t.style.overflow="hidden"},duration:B,element:o,advance:t=>{o.style.paddingTop=`${a-a*t}px`,o.style.paddingBottom=`${r-r*t}px`,o.style.marginTop=`${d-d*t}px`,o.style.marginBottom=`${n-n*t}px`,o.style.height=`${s-s*t}px`}});return h.promise().then(t=>{t instanceof Error||(o.style.overflow=p,o.style.paddingTop=g,o.style.paddingBottom=e,o.style.marginTop=l,o.style.marginBottom=y,o.style.height=m,o.style.display="none")}),h};export default u;
//# sourceMappingURL=slideUp.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy