Coder Social home page Coder Social logo

Comments (4)

gmrchk avatar gmrchk commented on May 3, 2024

Thanks!

Yes, the animations should always complete before the new page is revealed. It's possible you have an older version, where swup had a bug and the end of the transition of elements inside of your animated element was detected as the end of transition of the parent element. The latest version does not have this issue.

In case that update doesn't help, please provide your code or demo.

from swup.

carlfmichel avatar carlfmichel commented on May 3, 2024

Was there any resolution to this issue? I am having a similar problem. The transition works the first time but after the page is cached the transition is ignored. Any insight would be great!

I second the compliment, Swup is great!.

from swup.

gmrchk avatar gmrchk commented on May 3, 2024

Thank you!

From my experience, those symptoms indicate that it's not swup issue and you are most likely making mistake somewhere in you code. Unfortunatelly, that means I cannot help you without seeing your code or demo.

Can you please provide that?

from swup.

gmrchk avatar gmrchk commented on May 3, 2024

I've seen people making several mistakes when getting this kind of behavior:

  1. Using CSS @keyframes + animation property, instead of transition property + defining different styles in the transition state. CSS animation can be used for animating elements in the transition, but it cannot be used for swup's timing.

  2. Using [class^="a-"] selector wrong. The selector selects any element whose class attribute begins with string 'a-'... in short, class a-class and-other is selected, but class and-other a-class is not.

  3. Not having the same structure on each page - missing elements for swup to replace in certain pages.

Hope this helps. Closing. Feel free to reopen with demo/code example.

from swup.

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.