私は色の変化をアニメーション化しています(jquery.colors.jsプラグインを使用)
私はアニメーション機能を使用します:
el.animate({"background-color": activeColor}, 1000, "linear");
this changes color (fade in or fade out depending on current and
target colors). And the direction of the change is from
left to right.
右から左に移動します。
助言がありますか?たぶん、jQueryから他のイージングを使用するのですか?
ベストアンサー
これはあなたのためのトリックを行う可能性があります:
var oldColor = el.css('background-color');
el.css('background-color', activeColor);
el.animate({"background-color": oldColor}, 1000, "linear");