2016-08-22 8 views

答えて

2

.rotation_90deg{ 
    -moz-transition: all 2s linear; 
    -webkit-transition: all 2s linear; 
    transition: all 2s linear; 
} 

.rotation_90deg.down{ 
    -moz-transform:rotate(90deg); 
    -webkit-transform:rotate(90deg); 
    transform:rotate(90deg); 
} 

そして、あなたのスクリプトで

$(".rotation_90deg").click(function(){ 
    $(this).toggleClass("down") ; 
}); 
以下のようなCSSクラスに追加この

<a href="#"><div class="fa fa-anchor rotation_90deg"></div></a> 

をお試しください

作業フィドラーhttp://jsfiddle.net/zakirshakir/3v2egwfs/790/

関連する問題