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… […]

Guest Writing

By Chris Coyier on

A quick reminder that if you have the inclination to do some technical writing, we’re looking for more of that around here at Frontend Masters Boost. Here’s an informational page about it. Reach out!

Draw on Scroll

By Chris Coyier on

Clever idea idea from Rauno Freiberg then explained by Brad Woods. To create a line drawn on scroll effect, we render a line down the page. Then, use a clip-path to show only part of it. As the user scrolls, we translate the clip-path down the page.

Fading Out Text with Mask

By Chris Coyier on

If you’re going to fade out some text, I’m gonna call it and say the best way, while also being the easiest, is using a mask. Kilian Valkhof covered this recently, rejecting the idea of an overlay gradient, and also offering the idea of using background-clip. But mask is the clear winner. Let’s get that […]