I can see myself almost certainly needing to use this clever technique at some point so I’m going to squirrel it away now for future me.
I like the split-screen animated format for explaining this topic.
I’m very excited about this proposal for animating transitions between web pages!
I’m less excited about doing it for single page apps, but I get why it’s the simplest place to start.
I think Bruce is onto something here:
It seems to me that browsers could do more to protect their users. Browsers are, after all, user agents that protect the visitor from pop-ups, malicious sites, autoplaying videos and other denizens of the underworld. They should also protect users against nausea and migraines, regardless of whether the developer thought to (or had the tools available to).
So, I propose that browsers should never respect
scroll-behavior: smooth;if a user prefers reduced motion, regardless of whether a developer has set the media query.
A case study with equal emphasis on animation and performance.
It would be nice to be able to animate the transition between pages if we want to on the web without resorting to hacks or full-blown architecture choices to achieve it.
Amen, Chris, amen!
The danger here is that you might pick a single-page app just for this ability, which is what I mean by having to buy into a site architecture just to achieve this.
Given the widespread browser support for
prefers-reduced-motion now, this approach makes a lot of sense.
This is a really nice introduction to CSS transitions with interactive demos you can tinker with.
Cassie’s enthusiasm for fun and interesting SVG animation shines through in her writing!
Cassie’s redesign is gorgeous—so much attention to detail! (And performant too)
Cassie’s excellent talk on SVG animation is well worth your time.
A handy tool for tweaking the animations in your SVGs.
The way you build web pages—using
IntersectionObserver, for example—can have a direct effect on the climate emergency.
Webpages can be good citizens of battery life.
It’s important to measure the battery impact in Web Inspector and drive those costs down.
What a wonderfully in-depth and clear tutorial from Cassie on how she created the animation for her nifty SVG logo!
Also: Cassie is on the indie web now, writing on her own website—yay!
Don’t miss this—a masterclass in SVG animation with Cassie (I refuse to use the W word). Mark your calendar: August 20th.
Impressively lightweight and smooth!
Here’s a clever tiny lesson from Dave and Brad: you can use
prefers-reduced-motion in the
media attribute of the
source element inside