当前位置:网站首页>The last picture is seamlessly connected with the first picture in the swiper rotation picture
The last picture is seamlessly connected with the first picture in the swiper rotation picture
2022-07-01 15:12:00 【Skipping Wang Xiaozhe】
Problem description :
Recently, with swiper Make advertising rotation pictures , Then I find that when I slide to the last picture , The picture in the middle will flash by , This will affect the beauty .
Problem solving :
increase loop: true attribute ;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Rotation diagram of mobile terminal </title>
<link rel="stylesheet" href="./css/swiper.min.css">
</head>
<body>
<div class="contenter">
<div class="swiper-container">
<div class="swiper-wrapper" loop="true">
<div class="swiper-slide"><a href="#"><img width="100%" src="./images/banner.jpg" alt=""></a></div>
<div class="swiper-slide"><a href="#"><img width="100%" src="./images/banner2.jpg" alt=""></a></div>
<div class="swiper-slide"><a href="#"><img width="100%" src="./images/banner.jpg" alt=""></a></div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
<script src="./js/swiper.min.js"></script>
<script>
var mySwiper = new Swiper('.swiper-container', {
loop: true,// The last one is seamlessly linked with the first one
autoplay:3000,// Optional options , Auto slide time
pagination: '.swiper-pagination',
paginationClickable: true,
})
</script>
</body>
</html>边栏推荐
- Cannot link redis when redis is enabled
- Task. Run(), Task. Factory. Analysis of behavior inconsistency between startnew() and new task()
- Mongodb second talk - - mongodb High available Cluster Implementation
- Ubuntu 14.04下搭建MySQL主从服务器
- Sort out the four commonly used sorting functions in SQL
- tensorflow2-savedmodel convert to pb(frozen_graph)
- Beilianzhuguan joined the dragon lizard community to jointly promote carbon neutralization
- Tiantou village, Guankou Town, Xiamen special agricultural products Tiantou Village special agricultural products ant new village 7.1 answer
- skywalking 6.4 分布式链路跟踪 使用笔记
- Music player development example (can be set up)
猜你喜欢

首届技术播客月开播在即
k8s部署redis哨兵的实现

Junda technology - wechat cloud monitoring scheme for multiple precision air conditioners

JVM第一话 -- JVM入门详解以及运行时数据区分析

MySQL service is starting. MySQL service cannot be started. Solution

Markdown编辑器使用基本语法

In hot summer, please put away this safe gas use guide!

微信公众号订阅消息 wx-open-subscribe 的实现及闭坑指南

Fix the failure of idea global search shortcut (ctrl+shift+f)

如何实现时钟信号分频?
随机推荐
solidty-基础篇-结构体和数组,私有 / 公共函数,函数的返回值和修饰符,事件
数据产品经理需要掌握哪些数据能力?
Ensure production safety! Guangzhou requires hazardous chemical enterprises to "not produce in an unsafe way, and keep constant communication"
Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching
《QT+PCL第六章》点云配准icp系列4
Build MySQL master-slave server under Ubuntu 14.04
TS报错 Don‘t use `object` as a type. The `object` type is currently hard to use
The first word of JVM -- detailed introduction to JVM and analysis of runtime data area
Opencv learning note 4 -- bank card number recognition
微信网页订阅消息实现
Zabbix API与PHP的配置
《QT+PCL第六章》点云配准icp系列2
三十之前一定要明白的职场潜规则
go-zero实战demo(一)
Opencv learning notes 5 -- document scanning +ocr character recognition
Demand prioritization method based on value quantification
Flink 系例 之 TableAPI & SQL 与 Kafka 消息插入
Tableapi & SQL and MySQL insert data of Flink
k8s部署redis哨兵的实现
保证生产安全!广州要求危化品企业“不安全不生产、不变通”