An ember addon for Carousel component
From within your Ember CLI application, run the following:
ember install ember-carousel
Add invoke the component as follows
This is the primary component to start displaying carousel items.
transitionInterval
- Defaults to500
.onSlide
- Optional, an action that receives one parameter, an object like{ index: 3, previousIndex: 2, direction: 'right' }
.
Triggered before the transition is completed.
This component yields two hashes, e.g. {{#carousel-container as |ui act|}}
.
These parameters ui
and act
can be called anything, but they contain the following items:
ui
- is a hash with the following component items:item
- A component that should contain your slide contents, used like so{{ui.item}}you content{{/ui.item}}
.
controls
- is a hash with the following action items:previous
- A closure action that changes to the previous slide.next
- A closure action that changes to the next slide.
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.