---
title: "Файлы Swiper. HTML-макет. Инициализация с параметрами. - WebTolk"
description: "Js и CSS файлы Swiper. Полный HTML макет. Инициализация Swiper с параметрами."
url: "https://web-tolk.ru/dev/joomla-plugins/wt-jswiper/documentation/swiper-files-html-layout-initialization-with-parameters"
date: "2026-06-20T05:05:18+00:00"
language: "ru-RU"
---

# Файлы Swiper. HTML-макет. Инициализация с параметрами.

WT JSwiper - SWiper.js для Joomla-разработчиков - Документация

**Категория:** [Плагины Joomla](https://web-tolk.ru/dev/joomla-plugins)

[Проект](https://web-tolk.ru/dev/joomla-plugins/wt-jswiper)[Версии](https://web-tolk.ru/dev/joomla-plugins/wt-jswiper/versions)[Документация](https://web-tolk.ru/dev/joomla-plugins/wt-jswiper/documentation)[GitHub](https://github.com/WebTolk/WT-JSwiper-Joomla-web-asset-plugin)[JED](https://extensions.joomla.org/extension/core-enhancements/libraries/wt-jswiper/)

Js и CSS файлы Swiper. Полный HTML макет. Инициализация Swiper с параметрами.

## Полный HTML макет Swiper

```
<!-- Slider main container -->
<div class="swiper">
  <!-- Additional required wrapper -->
  <div class="swiper-wrapper">
    <!-- Slides -->
    <div class="swiper-slide">Slide 1</div>
    <div class="swiper-slide">Slide 2</div>
    <div class="swiper-slide">Slide 3</div>
    ...
  </div>
  <!-- If we need pagination -->
  <div class="swiper-pagination"></div>

  <!-- If we need navigation buttons -->
  <div class="swiper-button-prev"></div>
  <div class="swiper-button-next"></div>

  <!-- If we need scrollbar -->
  <div class="swiper-scrollbar"></div>
</div>
```

## Файлы

Swiper включает в себя различные наборы CSS, Less и SCSS. Полный список вы можете посмотреть в [официальной документации](https://swiperjs.com/swiper-api#styles).**Веб-ассет WT JSwiper для Joomla предоставляет только bandle сборку**.

 swiper-bundle.min.cssВключает все стили Swiper для всех модулей Swiper (например, Navigation, Pagination, и т.д.). Файл находится в **media/plg_system_wtjswiper/css**. Минифицирован.swiper-bundle.min.jsВключает в себя все модули Swiper. Находится в **media/plg_system_wtjswiper/js**. Минифицирован.

## Инициализация Swiper с параметрами

Теперь, когда добавлен HTML макет и подключены файлы Swiper нам нужно инициализировать его используя следующую функцию:

**new Swiper(swiperContainer, parameters)** - инициализация с параметрами

- `swiperContainer` - `HTMLElement` или строка (CSS селектор) HTML элемента для swiper контейнера. **Обязательный параметр**.
- `parameters` - `object` - json-объект с параметрами для Swiper. Не обязательный параметр.
- **Метод возвращает инициализированный экземпляр Swiper**

Например:

```
const swiper = new Swiper('.swiper', {
  speed: 400,
  spaceBetween: 100,
});
```

**После** инициализации Swiper появляется доступ к функционалу экземпляра Swiper через HTMLElement, на котором он был инициализирован. Используйте для этого свойство `swiper` HTML-элемента, где был инициализирован Swiper:

```
const swiper = document.querySelector('.swiper').swiper;

// Now you can use all slider methods like
swiper.slideNext();
```

[See also](https://swiperjs.com/swiper-api#initialize-swiper)

## JSON-LD Schema

```json
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@id": "https://web-tolk.ru/",
                "name": "Главная"
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@id": "https://web-tolk.ru/dev",
                "name": "Расширения Joomla"
            }
        },
        {
            "@type": "ListItem",
            "position": 3,
            "item": {
                "@id": "/dev/joomla-plugins",
                "name": "Плагины Joomla"
            }
        },
        {
            "@type": "ListItem",
            "position": 4,
            "item": {
                "@id": "/dev/joomla-plugins/wt-jswiper",
                "name": "WT JSwiper - SWiper.js для Joomla-разработчиков"
            }
        },
        {
            "@type": "ListItem",
            "position": 5,
            "item": {
                "@id": "/dev/joomla-plugins/wt-jswiper/documentation",
                "name": "Документация"
            }
        },
        {
            "@type": "ListItem",
            "position": 6,
            "item": {
                "name": "Файлы Swiper. HTML-макет. Инициализация с параметрами."
            }
        }
    ]
}
```

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Organization",
            "@id": "https://web-tolk.ru/#/schema/Organization/base",
            "name": "WebTolk",
            "url": "https://web-tolk.ru/",
            "logo": {
                "@type": "ImageObject",
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo",
                "url": "images/webtolk-1080p.jpg",
                "contentUrl": "images/webtolk-1080p.jpg",
                "width": 1920,
                "height": 1080
            },
            "image": {
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo"
            },
            "sameAs": [
                "https://github.com/WebTolk",
                "https://github.com/sergeytolkachyov",
                "https://vk.com/web_tolk",
                "https://vk.com/webtolkru",
                "https://tenchat.ru/sergeytolkachyov",
                "https://t.me/sergeytolkachyov",
                "https://t.me/webtolkru"
            ]
        },
        {
            "@type": "WebSite",
            "@id": "https://web-tolk.ru/#/schema/WebSite/base",
            "url": "https://web-tolk.ru/",
            "name": "WebTolk",
            "publisher": {
                "@id": "https://web-tolk.ru/#/schema/Organization/base"
            }
        },
        {
            "@type": "WebPage",
            "@id": "https://web-tolk.ru/#/schema/WebPage/base",
            "url": "https://web-tolk.ru/dev/joomla-plugins/wt-jswiper/documentation/swiper-files-html-layout-initialization-with-parameters",
            "name": "Файлы Swiper. HTML-макет. Инициализация с параметрами. - WebTolk",
            "description": "Js и CSS файлы Swiper. Полный HTML макет. Инициализация Swiper с параметрами.",
            "isPartOf": {
                "@id": "https://web-tolk.ru/#/schema/WebSite/base"
            },
            "about": {
                "@id": "https://web-tolk.ru/#/schema/TechArticle/base"
            },
            "inLanguage": "ru-RU",
            "breadcrumb": {
                "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17"
            }
        },
        {
            "@type": "TechArticle",
            "headline": "Файлы Swiper. HTML-макет. Инициализация с параметрами.",
            "url": "https://web-tolk.ru/dev/joomla-plugins/wt-jswiper/documentation/swiper-files-html-layout-initialization-with-parameters",
            "description": "Js и CSS файлы Swiper. Полный HTML макет. Инициализация Swiper с параметрами.",
            "mainEntityOfPage": {
                "@type": "WebPage",
                "url": "https://web-tolk.ru/dev/joomla-plugins/wt-jswiper/documentation/swiper-files-html-layout-initialization-with-parameters"
            }
        }
    ]
}
```
