Yeah. I find it very interesting. One thing about CSS is they're often different ways to achieve the same effect. And I, and I think this is where that GreenSock says, okay, we're going to kind of handle a lot of things behind, so you don't need to worry about which way I'm trying to do it. So that's really cool.
Kevlar actually asked a very, I think an important question. They said the scrolling animation's really impressive. So they love them, but do you see any downsides for accessibility? Um, well, there, there are always trade-offs, I think, um, when you are animating things. Um, and I think that the best way to approach animation is think about what the purpose of the site is. So if the purpose of the site, um, is getting content across to people, like if it's a serious content driven site and you really need to worry about accessibility. Say it's a university website and you've got to worry about people like signing up for like gov.uk, then you probably don't need animation. Um, if you're kind of more focused on the visual side of things, then animate, but animate responsibly, like have prefers, reduced motion, fallbacks and stuff. Um, the, the only, like one of the big issues, um, with animation is not providing prefers reduced motion fallbacks. So if you've got that covered, like a lot of, a lot of the kind of issues are sorted. That's my new CSS quote, animate, but animate responsibly. You should put that on a t-shirt, honestly.
Um, and we have another one from Elvara, uh, who says, how would you go about an auto-scrolling animation? Auto-scrolling animation. Oh, scrolling. Yeah. Yeah. Auto. So if you're just talking about an animation that's advancing and looks like it's scrolling, but isn't tapping into the native scroll, then you'd just be looking at looping a timeline. So you'd create a timeline animation and then you'd loop it. Um, a lot of, this is a thing that I see quite a lot is, um, people thinking that animations are scrolling when they're scrolling. When they're not scrolling, they just are moving in a similar momentum, but scrolling animations, when I'm talking about that, that's using the browser's native scroll. So, yeah. That makes sense. One thing which I find super interesting and, you know, honestly, like a lot of CSS developers, they're artists as well. They're not just developers. They're able to sort of make illusions like you've said, where you think it's scrolling.
Comments