[英]Trying to make ease-in-out-expo timing function using standard css3
CSS3的標准計時功能沒有exo-in-out-expo。
標准輸入輸出為-MDN
但我想讓它像在這里看到的easeInOutExpo-easings.net
我真的是計時功能的新手,所以一直在努力工作。 請幫忙。
編輯:我在jquery.easing.1.3.js
找到了此代碼,但我不知道如何將其轉換為cubic-bezier
的四個參數。
easeInOutExpo: function (x, t, b, c, d) {
if (t==0) return b;
if (t==d) return b+c;
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.