Struggling with reversing a CSS animation based on a class being added to a DOM node? Take a look at the code I've been using:
// Closed state
@-moz-keyframes spin-close { 100% { -moz-transform: rotate(-0deg); } }
@-webkit-keyframes spin-close { 100% { -webkit-transform: rotate(-0deg); } }
@keyframes spin-close { 100% { transform:rotate(-0deg); } }
// Open state
@-moz-keyframes spin-open { 100% { -moz-transform: rotate(-90deg); } }
@-webkit-keyframes spin-open { 100% { -webkit-transform: rotate(-90deg); } }
@keyframes spin-open { 100% { transform:rotate(-90deg); } }
In need of guidance or a demo to clear things up? Feel free to share your expertise!