WP Swiper
WP Swiper Gutenberg Block is the most modern free mobile touch slider with hardware accelerated transitions and amazing native behavior. This powerful plugin is designed to be used in mobile websites, mobile web apps, and mobile native/hybrid apps, providing you with a range of features and customization options to help you create stunning slideshows, image galleries, and more.
Функции:
- Use any block available in Gutenberg to create your slider
- Hardware accelerated transitions for fast and smooth animations
- Customize every aspect of your slider, including navigation and pagination options, autoplay settings, and more
- Mobile-first design ensures your sliders look great on any device
- Multiple slide layouts to choose from, including horizontal and vertical options
- Dynamic content support, including support for video slides and dynamic image sources
- Easy to use and beginner-friendly, with a user-friendly interface and intuitive controls
- Built with performance in mind, ensuring your sliders load quickly and efficiently
WP Swiper Gutenberg Block is the ultimate tool for creating visually stunning displays on mobile devices. Whether you’re creating a mobile website, mobile web app, or mobile native/hybrid app, WP Swiper Gutenberg Block has everything you need to create beautiful and engaging slideshows, image galleries, and more.
Download WP Swiper Gutenberg Block today and take your mobile displays to the next level!
Support my work and fuel my creativity by buying me a virtual coffee on BuyMeACoffee
New Features and suggestions Contact Me
BETA TESTING
We’re actively developing new features and improvements for WP Swiper! Beta versions are available for testing, and we’d love your feedback to help make the plugin even better.
How to participate: 1. Download and install the latest beta version 2. Test the new features in your environment 3. Report any issues or provide feedback on our GitHub repository
Report Issues & Feedback: Found a bug or have suggestions? Please submit them here: https://github.com/andreyc0d3r/wp-swiper/issues
Your feedback is invaluable in helping us improve WP Swiper for everyone!
NEW RELEASE
WP Swiper version 1.2.0 is now live! This update introduces major changes, including a streamlined configuration with the new data-swiper attribute, a new WP Swiper Settings page, optimized asset loading, and more. Please note that the legacy configuration method will be deprecated in future releases.
For more details on what’s new and how to migrate, check out the full update announcement on the WP Swiper Blog.
wpswiper_frontend_js_register_args Filter
The wpswiper_frontend_js_register_args filter allows users to customize parameters when enqueueing the frontend-js script. This filter enables you to modify the script’s dependencies, control whether it loads in the footer, and specify additional loading strategies such as async or defer.
Parameters
-
deps: (array) The script dependencies forfrontend-js. Default value is['wpswiper-bundle']. You can modify this to include additional dependencies or remove existing ones. -
args: (array|bool) An optional array for additional script loading strategies. If provided, it may be an array with astrategykey (set to either'async'or'defer'). If not specified, it defaults tofalse, indicating that no special loading strategy is applied.
For more information, read the WordPress documentation on wp_enqueue_script.
Example Usage
To modify the default values, add the following code to your functions.php file or your custom plugin:
add_filter('wpswiper_frontend_js_register_args', function($args) {
// Modify script dependencies
$args['deps'] = ['wpswiper-bundle', 'jquery', 'your-custom-dependency'];
// Specify an additional loading strategy, such as async or defer
$args['args'] = [
'in_footer' => false,
'strategy' => 'defer'
]; // Options: 'async' or 'defer'
return $args;
});
This filter provides flexibility in how the frontend-js script is loaded, allowing for optimizations tailored to your specific site needs.
API Parameters
Loop Parameters
loopAddBlankSlides
- Type: boolean
- Default: true
- Description: Automatically adds blank slides if you use Grid or slidesPerGroup and the total amount of slides is not even to slidesPerGroup or to grid.rows
loopAdditionalSlides
- Type: number
- Default: 0
- Description: Allows to increase amount of looped slides
!!! ВАЖНО !!!
Я использую этот плагин для создания потрясающих слайдеров. На данный момент доступны только основные опции Swiper. Еще не все!!!
Если вам срочно нужна функция, пожалуйста, свяжитесь со мной. Если вы дизайнер и хотите предложить дизайн интерфейса, дайте мне знать.
Пользовательский интерфейс бэкэнда на данный момент не самый красивый. Но зато интуитивно понятный и выполняет свою задачу! Интерфейс настроен как ряд вкладок, каждая вкладка управляет слайдом. Нажмите на вкладку, и вы можете загрузить изображение. Нажмите на блок WP Swiper, и вы сможете управлять наложением слайдера + наложением цвета.
Еще одно замечание по поводу пользовательского интерфейса бэкенда. Первоначальная идея заключалась в создании функционального слайдера в редакторе. Но есть проблема с конкурирующими элементами HTML. Я разместил проблему в официальном репозитории swiper github для их решения. Оставьте комментарий для них, чтобы расставить приоритеты в решении.
Если вы хотите использовать слайд с текстом. Выберите слайд, добавьте изображение, изображение появится в качестве фона в интерфейсе. Если вы хотите использовать слайдер для изображений, просто добавьте обычный блок изображения.
Функции:
- Добавить наложение изображения для всего слайдера + управление непрозрачностью
- Добавить наложение цвета для всего слайдера + контроль прозрачности
- Добавить изображение в слайдер
- Добавьте содержимое (текст, заголовки, что угодно…) в слайдер
- Позиция содержимого для каждого слайдера
Дополнительные функции, которые будут добавлены:
- Контроль высоты слайдера
- Анимации
- Другие функции из официальной документации swiper
