Horje
transform on click Code Example
transform on click
/*If you want a css only solution you can use active*/
.crossRotate:active {
   transform: rotate(45deg);
   -webkit-transform: rotate(45deg);
   -ms-transform: rotate(45deg);
}

/*But the transformation will not persist when the activity moves. 
For that you need javascript (jquery click and css is the cleanest IMO).*/

<script>
$( ".crossRotate" ).click(function() {
    if (  $( this ).css( "transform" ) == 'none' ){
        $(this).css("transform","rotate(45deg)");
    } else {
        $(this).css("transform","" );
    }
});
</script>




Css

Related
display inline not alligned Code Example display inline not alligned Code Example
cmd batch application position windows script -cmdow Code Example cmd batch application position windows script -cmdow Code Example
How to replace broken image CSS? Code Example How to replace broken image CSS? Code Example
tailwind to css converter Code Example tailwind to css converter Code Example
How to run our spider Code Example How to run our spider Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10