Giter Site home page Giter Site logo

Reduce motion about css-flat HOT 3 OPEN

willybrauner avatar willybrauner commented on June 8, 2024
Reduce motion

from css-flat.

Comments (3)

zouloux avatar zouloux commented on June 8, 2024
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

T'es penses quoi ?

from css-flat.

willybrauner avatar willybrauner commented on June 8, 2024

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.

willybrauner avatar willybrauner commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.