0

How on Earth do you make an animation

I've tried everything

16th Jul 2016, 5:07 PM
Curt
Curt - avatar
4 Respuestas
+ 2
I just practiced this myself yesterday. You need a @keyframes part and the CSS you want animated like this: #to_be_animated { animation-name: myanimation; animation-duration: 3s; /* many other commands possible but above are required */ } @keyframes myanimation { 0% { the style you want initially ;} 100% { the style you want at the end ;} } There are lots of possibilities. The above are the minimum required components for it to work. Note that animation-duration is required.
18th Jul 2016, 12:17 AM
Brian
0
Thanks dude
18th Jul 2016, 12:19 AM
Curt
Curt - avatar
0
You can take a look at my practice code named "Loading Screen Animations in CSS" if you want some examples.
18th Jul 2016, 12:23 AM
Brian
0
Ok
18th Jul 2016, 12:24 AM
Curt
Curt - avatar