[英]jQuery Easing Animation
也許一些CSS
和一些jQuery
addclass可能會有所幫助? https://jsfiddle.net/moongod101/s4L1909p/
以您發布的動畫為例, 無需使用jQuery就可以對輸入進行動畫處理。
實際上-永遠不要將jQuery用於動畫,因為它效率很低。
仍然-可以像這個小提琴一樣對輸入進行動畫處理
input.anim{
display:block;
margin:3rem auto;
animation: showExtend 1.2s cubic-bezier(.25,1.52,.59,.9) forwards;
}
@keyframes showExtend{
from{
transform: translate(0%, -5000%) rotate(35deg) scale(1,.1);
}
50%{
transform: translate(0%, 15%) rotate(15deg) scale(1,.5);
}
to{
transform: translate(0,0) rotate(0deg) scale(1,1);
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.