\{{#twbs-carousel as |carousel|}} + \{{#carousel.slide classNames="active" as |slide|}} + \{{slide.img src="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+1" alt="A slide image."}} + \{{/carousel.slide}} + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+2" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+5" alt="A slide image."}} + \{{/carousel.slide}} +\{{/twbs-carousel}} ++{{!-- @formatter:on --}} +
The slide (or item) in the carousel that you want to appear first MUST:
+classNames="active"
+ In the example above, the first \{{twbs-carousel/slide}}
has its class set to
+ active
and the \{{twbs-carousel/slide/img}}
is not lazy-loaded.
+
\{{#twbs-carousel as |carousel|}} + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+1" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide classNames="active" as |slide|}} + \{{slide.img src="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+3" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+5" alt="A slide image."}} + \{{/carousel.slide}} +\{{/twbs-carousel}} ++{{!-- @formatter:on --}} +
\{{#twbs-carousel classNames="slide" as |carousel|}} + \{{#carousel.slide classNames="active" as |slide|}} + \{{slide.img src="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Animation+1" alt="A slide image."}} + \{{/carousel.slide}} + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Animation+2" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Animation+5" alt="A slide image."}} + \{{/carousel.slide}} +\{{/twbs-carousel}} ++{{!-- @formatter:on --}} +
+ To configure a a carousel that uses a slide animation to transition between slides, simply supply
+ the classNames="slide"
class to the \{{twbs-carousel}}
component.
+
Refer to the Bootstrap3 latest Carousel documentation to better understand these options.
+ +interval=5000
(DEFAULT)\{{#twbs-carousel classNames="slide" interval=5000 as |carousel|}} + \{{#carousel.slide classNames="active" as |slide|}} + \{{slide.img src="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Interval+1" alt="A slide image."}} + \{{/carousel.slide}} + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Interval+2" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Interval+5" alt="A slide image."}} + \{{/carousel.slide}} +\{{/twbs-carousel}} ++{{!-- @formatter:on --}} +
interval=false
\{{#twbs-carousel classNames="slide" interval=false as |carousel|}} + \{{#carousel.slide classNames="active" as |slide|}} + \{{slide.img src="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Interval+6" alt="A slide image."}} + \{{/carousel.slide}} + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Interval+7" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Interval+10" alt="A slide image."}} + \{{/carousel.slide}} +\{{/twbs-carousel}} ++{{!-- @formatter:on --}} +
keyboard?=false
\{{#twbs-carousel classNames="slide" keyboard?=false as |carousel|}} + \{{#carousel.slide classNames="active" as |slide|}} + \{{slide.img src="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Keyboard+1" alt="A slide image."}} + \{{/carousel.slide}} + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Keyboard+2" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Keyboard+5" alt="A slide image."}} + \{{/carousel.slide}} +\{{/twbs-carousel}} ++{{!-- @formatter:on --}} +
pause="hover"
\{{#twbs-carousel classNames="slide" interval=500 pause="hover" as |carousel|}} + \{{#carousel.slide classNames="active" as |slide|}} + \{{slide.img src="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Pause+Hover+1" alt="A slide image."}} + \{{/carousel.slide}} + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Pause+Hover+2" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+Pause+Hover+5" alt="A slide image."}} + \{{/carousel.slide}} +\{{/twbs-carousel}} ++{{!-- @formatter:on --}} +
wrap?=false
\{{#twbs-carousel classNames="slide" wrap?=false as |carousel|}} + \{{#carousel.slide classNames="active" as |slide|}} + \{{slide.img src="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+No+Wrap+1" alt="A slide image."}} + \{{/carousel.slide}} + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+No+Wrap+2" alt="A slide image."}} + \{{/carousel.slide}} + ... + \{{#carousel.slide as |slide|}} + \{{slide.img lazy="https://dummyimage.com/1600x900/f7d3a0/333.jpg&text=Slide+No+Wrap+5" alt="A slide image."}} + \{{/carousel.slide}} +\{{/twbs-carousel}} ++{{!-- @formatter:on --}} +