Jump to content

W3CSS - Add new class to spin an object in reverse direction


sybozz

Recommended Posts

Hi there,Love the W3CSS for a lightweight material design and easy responsiveness.

Working on it for few days and thinking to contribute.So here is my thought for using .w3-spin class to spin something mostly the icons in reverse direction. I fork this spin class to .w3-spin-reverse which is working perfectly for a spin in reverse direction.

.w3-spin-reverse {animation:w3-spin-reverse 2s infinite linear;-webkit-animation:w3-spin-reverse 2s infinite linear}@-webkit-keyframes w3-spin-reverse{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg);}}@keyframes w3-spin-reverse {0%{-webkit-transform:rotate(0deg);transform: rotate(0deg);}100%{-webkit-transform:rotate(-359deg);transform:rotate(-359deg);}}

Check out the demo @ http://goo.gl/KsXea9Hope this might help improve this beautiful framework work other folks who really love this.Thanks.

Edited by sybozz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...