Here's a great overview article detailing css animations and keyframes. A well explained intro or a refresher for the veterans. Animation syntax is a bit different than normal CSS, but rightly so, because "normal" css styles elements statically (with some thought to states), but animations bring in a whole extra dimension!
CSS Animation: How it works from transitions to animations | Unmatched Style
Our mission is to provide inspiration, motivation and insight into how you design the web. CSS Animation: How it works from transitions to animations