This question is related to bootstrap carousel.
I want to show items one by one inside a carousel item.
like:
<div class="carousel-inner">
<div class="active item">
<div class="step3">..</div>
<div class="step1">..</div>
<div class="step2">..</div>
</div>
<div class="item">…</div>
<div class="item">…</div>
</div>
when carousel item get active then show
step1 then step2 then step3 then step4. .. . ... .
I know where to insert code in bootstrap carousel plugin, but don't know how to start:
Here is the code where we can write code for my need (About line 125):
if ($.support.transition && this.$element.hasClass('slide')) {
this.$element.trigger(e)
if (e.isDefaultPrevented()) return
$next.addClass(type)
$next[0].offsetWidth // force reflow
$active.addClass(direction)
$next.addClass(direction)
this.$element.one($.support.transition.end, function () {
$next.removeClass([type, direction].join(' ')).addClass('active')
$active.removeClass(['active', direction].join(' '))
that.sliding = false
setTimeout(function () {
that.$element.trigger('slid')
}, 0)
})
} else {.....
}