A Scroll-Driven Animation… with a Duration

By Chris Coyier on

Ryan Mulligan digs into a Jhey Tompkins Pen and discovers a neat little trick involving two @keyframe animations. The first is a “trigger” animation that triggers when a certain element comes into view, and flips a –trigger custom property. Via a Style Query, that triggers the actual animation. Why bother? Scroll-driven animation durations are, well… […]

Did you know?

Frontend Masters Donates to open source projects. $313,806 contributed to date.