I need to adapt some css code to javascript.
I have next code, and I need to adapt it to javascript objects, through .style of javascript object.
With attributes, I'm doing well, but with selectors I have to develop with javascript actions (for calling it in anyway) :)
.cr-container input:checked ~ .cr-bgimg div span{
-webkit-animation: slideOut 0.6s ease-in-out;
-moz-animation: slideOut 0.6s ease-in-out;
-o-animation: slideOut 0.6s ease-in-out;
-ms-animation: slideOut 0.6s ease-in-out;
animation: slideOut 0.6s ease-in-out;
}