どうやらデフォルトのjQueryではanimateメソッドを使ってbackground-colorをアニメーションをすることは難しいようだ。
で、Color animation jQuery-pluginというプラグインを使えばアニメーションができるようになる。
詳細はこう
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="jquery.animate-colors-min.js"></script>
<script>
jQuery(function($) {
$('body').stop(true,true).animate({
backgroundColor: '#000000'
},250,function(){
});
});
</script>
0 コメント:
コメントを投稿