There are several tricks to writing efficient CSS animations that few people seem aware of. Most people borrow directly from common libraries such as Animate.css without realising how bloated they are.
You can:
- Omit start or end frames for greater versatility with less code.
- Combine similar frames.
- Combine animations to reduce keyframes declarations.
- Reverse animations to avoid separate "In" and "Out" keyframes.