Twitter Startup Carousel Fade Transition
source link: https://www.codesd.com/item/twitter-startup-carousel-fade-transition.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Twitter Startup Carousel Fade Transition
this is a follow-up question regarding an answer by @StrangeElement to this older question: Can the Twitter Bootstrap Carousel plugin fade in and out on slide transition
i tried @StrangeElement's mod to the bootstrap.css and i almost have it working. the problem is that when the active image fade's out, it fades to white, then the next image will pop in with no fade in animation. what might i be missing here?
here's the example i'm working with:
http://planetofsoundonline.com/beta/index.php
any kind of pointers would be hugely appreciated. thanks!
Take a look at this fiddle. Unfortunately it doesn't work on any of the currently available versions of Internet Explorer.
Your carousel div
only needs an extra class carousel-fade
added, for it to work.
[source]
This transition shows the next image and then fades the new image out on top of it. If you want a direct fade out fade in animation, add these lines to the css.
.carousel.carousel-fade .item {
opacity:0;
}
.carousel.carousel-fade .active.item {
opacity:1;
}
Related Articles
Bootstrap Carousel Fade Transition
Twitter Bootstrap Carousel slide duration
Twitter Bootstrap Carousel is not smooth on Safari
OwlCarousel with Fade Transition Slides in Safari Browser
The owl carousel always transits when only 1 slide in the carousel
Twitter Bootstrap carousel indicators fly over
Adding a fade transition to the background on the hover
iPhone: Fade transition between two RootViewControllers
Twitter Bootstrap carousel sensitive with multiple items
Change the background color every 30s (fade transition)
How to make a fast fade transition css3?
Twitter Bootstrap Carousel No Loading
Using Bootstrap 3 Carousel to change the background image, ideas for a smooth fade transition?
Owl Carousel fade effect not working
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK