Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to its current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which shifts the slide position to a particular index beginning with <code>0</code>.
Используйте атрибуты данных для простого управления положением карусели. <code>data-slide</code> принимает ключевые слова <code>prev</code> или <code>next</code>, которые изменяют положение слайдов относительно текущего. Кроме того, можно использовать <code>data-slide-to</code>, чтобы присваивать простой индекс слайда <code>data-slide-to="2"</code>, который изменяет положение слайда в соответствии с определенным индексом, начинающимся с <code>0</code>.