Is there a way to alter the transition or fade duration of a carousel in BS4.2 using scripts? According to the BS documentation:
Adjusting transition duration
To modify the transition duration of
.carousel-item
, you can utilize the$carousel-transition
Sass variable prior to compiling, or apply custom styles if working with the compiled CSS. When dealing with multiple transitions, ensure that the transform transition is specified first (e.g.).transition: transform 2s ease, opacity .5s ease-out
I am currently working with css. Is it possible to adjust the transition using JavaScript? For instance, similar to changing the interval:
<script>
$( '.carousel' ).carousel( {
interval: 6000
} )
</script>