0
ここは私のフィドルlinkです。入力用ライン構築アニメーション
jQuery('input').focusin(function(){
window.setTimeout(function() {
jQuery('input').addClass('animatedBottomBorder');
}, 150);
window.setTimeout(function() {
jQuery('input').addClass('animatedLeftBorder');
}, 300);
window.setTimeout(function() {
jQuery('input').addClass('animatedTopBorder');
}, 450);
window.setTimeout(function() {
jQuery('input').addClass('animatedRightBorder');
}, 600);
});
jQuery('input').focusout(function(){
jQuery('.searchTextField').removeClass('animatedBottomBorder');
jQuery('.searchTextField').removeClass('animatedLeftBorder');
jQuery('.searchTextField').removeClass('animatedTopBorder');
jQuery('.searchTextField').removeClass('animatedRightBorder');
});
focusinイベントでは、境界がフェードインして、フォーカスアウトイベント境界が消えます。
しかし、移動中の線は非常に速くなります。今は動いているフェードでロードしますが、私は動いて動くようにします。
クリックするとアニメーションが速くなりますか? –
はい、私は速くしたいですが、主な問題は、ラインのように、ムービングアニメーションにフェードアニメーションを変更したいですか? @DebakantMohanty – aidadev
代わりにcss3アニメーションを使用する方が簡単でしょうか? Le:キーフレームアニメーション –