Hi, I want to rotate a div using @keyframes on the page load, but I just can’t get it to work. Any ideas of how to code? :/
1 -make a class holding the animation declaration.
2 – on page load add that class to the element you want
3 – enjoy the magic.
animation:turn 1s linear;
note that animation keyframes and transform require vendor prefixes
Hmm.. Still can’t get it to work.. As you can see in the example here.
trying to set the height of section with a mix of vanilla js and jquery.
$(‘section’).style.height = ‘100% – ‘ + $(‘header’).style.height + ‘px’; // added a  after the jquery selector
$(‘section’).css(‘height’, ‘100% – ‘ + $(‘header’).style.height + ‘px’);
note you dont have a section to your document
Oh, yeah, that’s my original js file that I also use for the main index file
I figured it out by myself, you can see it [here](http://www.poxmedia.net/ “Here”). The button in the top left corner spins every minute :P
You must be logged in to reply to this topic.