Git Product home page Git Product logo

Comments (4)

IanLunn avatar IanLunn commented on September 27, 2024

Hi, the behaviour you describe is expected and works in the basic slider for example.

When navigating back to step 2 from step 3, Sequence very briefly adds the animate-out class to step 2 to reset it, then swaps that class for animate-in so it comes in from the left.

Something in your CSS is breaking this process. In this CSS:

/* Slide 2 */
    .slide2.animate-in .slide {transition-delay: 0s !important; -webkit-transition-delay: 0s !important;
        transition-duration: 0.8s !important; -webkit-transition-duration: 0.8s !important;
    }

    .slide2.animate-out .slide { transition-delay: 0s !important; -webkit-transition-delay: 0s !important;
        transition-duration: 0.8s !important; -webkit-transition-duration: 0.8s !important;
    }

I removed all instances of !important and the behaviour works as expected again. I can't be specific as to why this is happening without digging into your CSS deeper. I'd recommend trying to avoid the use of !important and instead rely on the cascade and specificity.

from sequence.

owarigit avatar owarigit commented on September 27, 2024

Hi,  Thanks for the reply.
I tried to use the basic slide (just adding the pagination) here http://muncul.in/test/themes/basic-slide/ . The animation works fine, just when I navigate to slide 3 directly from slide 1, the slide 2 will have no class (it has no problem if there is class animate-out).Also for the 2nd question, can I modify the slide so when I go to slide 3 directly from slide 1, the slide will also play slide 2 (also maybe adding animate-out) in advance. Like this one http://tympanus.net/Tutorials/ParallaxSlider/
I try to make a timeline slider, and some of the slider have connected background like my previous example.

Sorry for my english, hope it doesn't too confusing :)

Thanks

 On Tuesday, July 21, 2015 4:13 PM, Ian Lunn <[email protected]> wrote:

Hi, the behaviour you describe is expected and works in the basic slider for example.When navigating back to step 2 from step 3, Sequence very briefly adds the animate-out class to step 2 to reset it, then swaps that class for animate-in so it comes in from the left.Something in your CSS is breaking this process. In this CSS:/* Slide 2 */
.slide2.animate-in .slide {transition-delay: 0s !important; -webkit-transition-delay: 0s !important;
transition-duration: 0.8s !important; -webkit-transition-duration: 0.8s !important;
}

.slide2.animate-out .slide { transition-delay: 0s !important; -webkit-transition-delay: 0s !important;
    transition-duration: 0.8s !important; -webkit-transition-duration: 0.8s !important;
}

I removed all instances of !important and the behaviour works as expected again. I can't be specific as to why this is happening without digging into your CSS deeper. I'd recommend trying to avoid the use of !important and instead rely on the cascade and specificity.—
Reply to this email directly or view it on GitHub.

from sequence.

IanLunn avatar IanLunn commented on September 27, 2024

No, Sequence.js doesn't do that. I don't think this is something we would want to implement for the future either. Sorry!

from sequence.

owarigit avatar owarigit commented on September 27, 2024

Ok thanks for your information :)

 On Friday, July 24, 2015 3:31 PM, Ian Lunn <[email protected]> wrote:

No, Sequence.js doesn't do that. I don't think this is something we would want to implement for the future either. Sorry!—
Reply to this email directly or view it on GitHub.

from sequence.

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.