GithubHelp home page GithubHelp logo

Comments (6)

JSR-FR avatar JSR-FR commented on September 2, 2024 3

The same is happening to me with the most basic use of sal. There's definitely an issue on data-sal-delay with value greater than 1000.

from sal.

mciastek avatar mciastek commented on September 2, 2024

Can you prepare a working demo of this issue? You can use CodeSandbox as a working environment.

from sal.

zamson avatar zamson commented on September 2, 2024

For me the animation works but fires with no delay at all

from sal.

dmahajan980 avatar dmahajan980 commented on September 2, 2024

Yes, for a data-sal-delay value greater than 1000 the delay doesn't work but the animations do.

from sal.

mciastek avatar mciastek commented on September 2, 2024

@dmahajan980 is right. Maximum value of the delay is 1000ms (1s), so you can't have a delay more than that. Probably it hasn't been stated in docs. If you want to specify higher delay, you can use custom CSS, like:

.custom-animated[data-sal-delay] {
  transition-delay: 2s;
}

For now it should be enough.

There's a request of adding support for custom animation properties using CSS variables. Probably that's the right way of handling such cases.

from sal.

mciastek avatar mciastek commented on September 2, 2024

Closing this issue in favour of #27. See docs for more details. If your target browser doesn't support CSS variables follow the example presented in #25 (comment).

from sal.

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.