Monday, May 20, 2024
90
rated 0 times [  96] [ 6]  / answers: 1 / hits: 26476  / 11 Years ago, thu, september 12, 2013, 12:00:00

For example I have carousel with 3 images, when the carousel slides the new images are added via 'slid' event



$('#imageCarousel').on('slid', function (event) {
//add more images
});


I want to disable animation for the carousel, so transition time is set to 0 in carousel css as it was shown here removing carousel animation. But after that 'slid' event does not fire. I cannot use 'slide' event, because I need to know which item is active in the carousel, but the 'active' class is not set up after the 'slide' event. How can I solve it? Thanks.


More From » twitter-bootstrap

 Answers
3

I suppose you can use the following code,



just remove the slide class from carousel div and use like,



<div class=carousel> 


this will remove the slide animation effect, see the working fiddle,


[#75737] Wednesday, September 11, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
janjadonb

Total Points: 4
Total Questions: 114
Total Answers: 118

Location: Mali
Member since Fri, Dec 3, 2021
3 Years ago
janjadonb questions
;