Comments (3)
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
T'es penses quoi ?
from css-flat.
Ce n'est pas quelque chose dont j'ai déjà eu besoin mais ça ne coûte rien de l'implémenter. Dans l'idée, moins on utilise le gros mot "!important" et mieux on se portera. Dans le cas de l'utilisation conditionnelle ça peut passer.
from css-flat.
Ok je comprends mieux.
https://developer.mozilla.org/fr/docs/Web/CSS/@media/prefers-reduced-motion
"Cet exemple possède une animation désagréable qui sera exécutée à moins d'activer la réduction de mouvement dans les préférences relatives à l'accessibilité."
Par contre ça ne fonctionne en gros que sur firefox. Donc pas utile.
https://caniuse.com/#search=prefers-reduced-motion
from css-flat.
Related Issues (3)
- T'es chaud ? HOT 1
- code sandbox demo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from css-flat.