Coder Social home page Coder Social logo

Not working about auto-animate HOT 4 CLOSED

Dev2Slope avatar Dev2Slope commented on June 3, 2024
Not working

from auto-animate.

Comments (4)

justin-schroeder avatar justin-schroeder commented on June 3, 2024

I’m going to guess you have prefers-reduced-motion enabled on your machine. You can check by putting this into your browser’s console:

window.matchMedia('(prefers-reduced-motion: reduce)').matches

Auto-Animate automatically disables itself if the user has prefers-reduced-motion enabled. There should also be a big warning at the top of the docs:

image

from auto-animate.

Dev2Slope avatar Dev2Slope commented on June 3, 2024

@justin-schroeder I don't know what sense it has, if each user that enters in my web has to activate this option to see animations this library is not worth for anything.

from auto-animate.

andrew-boyd avatar andrew-boyd commented on June 3, 2024

if each user that enters in my web has to activate this option to see animations this library is not worth for anything.

Agreed. Fortunately the prefers-reduced-motion accessibly option is off by default on every device we are aware of— so you must have enabled it at some point on your own device manually.

from auto-animate.

Dev2Slope avatar Dev2Slope commented on June 3, 2024

Now I understand, as I had that option disabled I thought that everybody had it that way and therefore it would not make sense to use this library.

Good job, sorry for the confusion.

from auto-animate.

Related Issues (20)

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.