Search
 
SCRIPT & CODE EXAMPLE
 

CSS

rotate icon on click css

/*it would be easier to do this with CSS transitions:*/

/* CSS */
.rotate{
    -moz-transition: all 2s linear;
    -webkit-transition: all 2s linear;
    transition: all 2s linear;
}

.rotate.down{
    -ms-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

/*jQuery*/

$(".rotate").click(function(){
    $(this).toggleClass("down"); 
});
Comment

PREVIOUS NEXT
Code Example
Css :: css first h element 
Css :: ssh: connect to host 165.22.132.219 port 22: Connection refused 
Css :: css text border 
Css :: li only showing first bullet 
Css :: coustomize srollbar 
Css :: break word css 
Css :: bootstrap modal is grayed out 
Css :: underline css animation hover 
Css :: border properties css 
Css :: css dark mode 
Css :: reduire espace entre ligne css 
Css :: before content from attribute 
Css :: css not last child 
Css :: wrap a span 
Css :: remove bullets from unordered list in css 
Css :: position absolute align center 
Css :: vertical align span tailwindscss 
Css :: add padding to scrollbar 
Css :: nth child css tricks 
Css :: css select with attribute 
Css :: scrollbar height css 
Css :: nth last of type 
Css :: style direction 
Css :: css image overflow 
Css :: css round element 
Css :: how to put a black overlay on a photo css 
Css :: css white-space 
Css :: css checkbox':checked change color 
Css :: edit css jquery 
Css :: print media query css 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =