当前位置:网站首页>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>边栏推荐
- Take you to API development by hand
- 项目中字符串判空总结
- 竣达技术丨室内空气环境监测终端 pm2.5、温湿度TVOC等多参数监测
- opencv学习笔记六--图像拼接
- 【LeetCode】16、最接近的三数之和
- 首届技术播客月开播在即
- Error-tf. function-decorated function tried to create variables on non-first call
- The State Administration of Chia Tai market supervision, the national development and Reform Commission and the China Securities Regulatory Commission jointly reminded and warned some iron ores
- Hidden rules of the workplace that must be understood before 30
- 数据产品经理需要掌握哪些数据能力?
猜你喜欢
随机推荐
opencv学习笔记六--图像特征[harris+SIFT]+特征匹配
leetcode:329. Longest increasing path in matrix
Ubuntu 14.04下搭建MySQL主从服务器
Opencv Learning Notes 6 -- image mosaic
Digital transformation: data visualization enables sales management
Error-tf.function-decorated function tried to create variables on non-first call
Markdown编辑器使用基本语法
TypeScript:const
k8s部署redis哨兵的实现
Can I choose to open an account on Great Wall Securities? Is it safe?
MySQL审计插件介绍
Internet hospital system source code hospital applet source code smart hospital source code online consultation system source code
In hot summer, please put away this safe gas use guide!
TypeScript:var
opencv学习笔记五--文件扫描+OCR文字识别
Sort out the four commonly used sorting functions in SQL
What is the relationship between network speed, broadband, bandwidth and traffic?
如何实现时钟信号分频?
Filter & (login interception)
微信小程序02-轮播图实现与图片点击跳转









