No-Motion-First Approach
For animations and transitions, take a no-motion-first approach. That means you write all the animations and transitions inside the @media (prefers-reduced-motion: no-preference).
This way, the users who choose to see them will be able to see them. Then, if the users' browsers do not support the prefers-reduced-motion media query, they will not see them, and that is fine—as long as the animations are not needed to understand the page. As a result, all users of old browsers do not see any animations and transitions, and users of modern browsers can see the animations if they choose to.
Using this approach, you are doing a progressive enhancement and making the website accessible at the same time.
As a side note, the idea is not coming from me. It is coming from Taking a no-motion-first approach to animations.
Share your thoughtsThank you for reading this No-Motion-First Approach. You can subscribe to all my articles with the Articles RSS. Add this website as a preferred source on Google. If you have a positive or negative comment, please send me an email or contact me through one of my social media accounts.
Share with your network
Copy this link and send it to great people only.
https://vanzasetia.xyz/blog/no-motion-first/
For you
Passion Is Not Enough to Be Better
I do not understand how people on the internet can claim that they are successful because they love what they do. Really? I get a feeling that their passion is not the true source of their success.
By Vanza Setia
Web Developers Should Stand against Thoughtlessness
In the past, developing responsive websites was a nightmare. Now you can develop websites without writing any code at all. But one line of code can destroy your website's responsiveness. You shall not make such a mistake.
By Vanza Setia