-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(carousel): add individual item intervals
Adds the ability to specify intervals per-item, which should hopefully match the functionality of the upstream feature. fixes #5305
- Loading branch information
Showing
4 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<Carousel> | ||
<Carousel.Item interval={1000}> | ||
<img | ||
className="d-block w-100" | ||
src="holder.js/800x400?text=First slide&bg=373940" | ||
alt="First slide" | ||
/> | ||
<Carousel.Caption> | ||
<h3>First slide label</h3> | ||
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p> | ||
</Carousel.Caption> | ||
</Carousel.Item> | ||
<Carousel.Item interval={500}> | ||
<img | ||
className="d-block w-100" | ||
src="holder.js/800x400?text=Second slide&bg=282c34" | ||
alt="Third slide" | ||
/> | ||
<Carousel.Caption> | ||
<h3>Second slide label</h3> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | ||
</Carousel.Caption> | ||
</Carousel.Item> | ||
<Carousel.Item> | ||
<img | ||
className="d-block w-100" | ||
src="holder.js/800x400?text=Third slide&bg=20232a" | ||
alt="Third slide" | ||
/> | ||
<Carousel.Caption> | ||
<h3>Third slide label</h3> | ||
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p> | ||
</Carousel.Caption> | ||
</Carousel.Item> | ||
</Carousel>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters