The CSS transforms that I used don't work in mozilla Firefox

64 views Asked by At

My animations arent working in mozilla but they are working in chrome. Please suggest some changes so that it works in

a {
    transition: all 0.5s ease-in-out 0s;
}

a:hover {
    transform:rotate(360deg) ;
    -moz-transform:rotate(360deg);  
    -webkit-transform:rotate(360deg);
    cursor:pointer;
}
1

There are 1 answers

0
connexo On BEST ANSWER

Add

display: inline-block;

to your link styles.

It seems like Firefox refuses to transform inline elements.

Check demo:

http://codepen.io/anon/pen/RPVVXM