CSS keyframe animations become more powerful and reusable when you omit the 'from' or 'to' blocks, allowing animations to inherit starting or ending values from the element's current state. This technique enables dynamic animations that adapt to different opacity levels and can be combined with multiple keyframe animations on
•9m read time• From joshwcomeau.com
Table of contents
Table of ContentsLink to this heading Inherited valuesLink to this heading Omitting the destinationLink to this heading Animating to a dynamic valueLink to this heading Whimsical Animations ✨Link to this heading Bonus: dynamic values in keyframe definitionsSort: