Book Image

Bootstrap for Rails

By : Syed F Rahman
Book Image

Bootstrap for Rails

By: Syed F Rahman

Overview of this book

Table of Contents (18 chapters)
Bootstrap for Rails
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Customizing Carousel


You can also add various, different data-* attributes to.carousel to change its default behavior. Bootstrap provides three different attributes:

data-interval: This attribute is used to change the duration time for each slide. It accepts integer values in milliseconds. For example, data-interval="5000".

data-pause: This attribute takes only one value, hover. When this attribute is set, the slideshow pauses when the mouse is hovered over it.

data-wrap: This attribute accepts Boolean values. When set as true, the slideshow will begin again from the first slide automatically.