You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
358 B
2 lines
358 B
2 years ago
|
"use strict";module.exports=function({from:t=0,duration:e=400}={}){return t>100&&(t=100),t<0&&(t=0),function({popper:i,data:p}){let o=i.children?.[0]?.children?.[0],[r]=p.position.split("-"),n=["left","right"].includes(r)?"width":"height";o&&(o.style[n]=p.popper[n]*t/100+"px",setTimeout((()=>{o.style.transition=e+"ms",o.style[n]=p.popper[n]+"px"}),18))}};
|