Comments (4)
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.
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.
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.
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)
- Auto Play is not working HOT 1
- phaseEnded/stepEnded don't occur when navigation is skipped and fadeStepWhenSkipped is disabled
- Improve Keyboard Navigation
- Add ARIA roles where necessary
- Pagination link should become current as soon as it is updated
- Add "no-js" class to Sequence element
- Step previously pauses when navigation skip occurs in reverse
- Multiple phases can be moved to animate-in when no elements are watched
- Add option to phaseThreshold to make it have the same value as animateCanvasDuration
- 100% Width of steps is not really 100% HOT 1
- [Feature] Usage of HTML5 data-* attributes for options
- Link Issues
- Initializing sequence after ajax injection / dynamic page
- Slideshow won't advance when there is a video - 1.0.1.2 HOT 3
- Sequence with svg in Edge
- Parallax with browser vertical scrollbar
- Autoplay is not working HOT 6
- Move slide after out animation is finished
- not work for me
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequence.