CSS Quick Tip: Animating in a newly added element | Stephanie Eckles
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 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.
This builds on Jake’s earlier proposal which I always thought was excellent and much needed. I’m not the only one. Chris agrees.
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.
This is how you write up a technique! Cassie takes an SVG pattern she used on the Clearleft “services” page and explains it in step-by-step detail, complete with explanatory animated diagrams.
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)
This is superbly in-depth and easy-to-follow article from Cassie—everything you need to know about motion paths in SVG and CSS! It’s worth reading just for the wonderful examples.
How cool is this!!?
Tom took one of the core ideas from my talk at Beyond Tellerrand and turned it into this animated CodePen!
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 picture
.