Слайдер
Общая информация
Разметка
<div id="slider"></div>
<script>
let someHtml = '<h3 class="pb-20">HTML Slide</h3>'
+ 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.<br>'
+ 'Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.<br>'
+ 'It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.<br>'
+ 'It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.'
+ '<br><br><hr><br>'
+ '<ol class="px-20"><li>Line #1</li><li>Line #2</li><li>Line #3</li></ol>';
let slider = new PipUI.Slider('#slider', {
slides: [
{img: "https://cdn.pipui.ru/media/images/slider/1.webp"},
{img: "https://cdn.pipui.ru/media/images/slider/2.webp"},
{img: "https://cdn.pipui.ru/media/images/slider/3.webp"},
{img: "https://cdn.pipui.ru/media/images/slider/4.webp"},
{content: someHtml},
{img: "https://cdn.pipui.ru/media/images/slider/5.webp", content: someHtml}
]
});
</script>Javascript
Инициализация
Опции
Методы
События
Триггер
Описание
Инициатор
Last updated