Coder Social home page Coder Social logo

Comments (3)

dougkeeling avatar dougkeeling commented on May 3, 2024

I see that my bottom comments about the "out transitions" were addressed by you in issue #11 . It might not hurt to make a note about that in the documentation. Your example of using multiple classes on one item was helpful. Thanks!

from swup.

gmrchk avatar gmrchk commented on May 3, 2024

Hi, glad you like it and thanks for checking the solved issues.

doScrollingRightAway option determines whether swup waits for the page to animate OUT or not to start the scroll, but will still continue with the IN animation in any way. swup doesn't have the option to animate out > scroll > animate in simply for the reason of being a bad approach, as you probably don't want a user to wait longer than needed. After all, the content of the next page is why user clicked the link.

Your best option would be to set animateScroll: false, so you animate the page out, jump to the top without the animation, and animate in. Of course, that assumes that your contents are hidden and no elements would be jumping around. Another option is to change the animation to look different or make it more optimized if that's the issue you are facing.

from swup.

dougkeeling avatar dougkeeling commented on May 3, 2024

Thank you! Once I got all the .a-class issues figured out, everything worked much better, and doScrollRightAway did exactly what I wanted. I'll close this issue, and thanks for the support. This is a fantastic little plugin. Hope you get lots of traction!

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.