当前位置:网站首页>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>边栏推荐
- Task.Run(), Task.Factory.StartNew() 和 New Task() 的行为不一致分析
- 微信小程序03-文字一左一右显示,行内块元素居中
- 厦门灌口镇田头村特色农产品 甜头村特色农产品蚂蚁新村7.1答案
- It's settled! 2022 Hainan secondary cost engineer examination time is determined! The registration channel has been opened!
- Summary of week 22-06-26
- What value can NPDP bring to product managers? Do you know everything?
- 网速、宽带、带宽、流量三者之间的关系是什么?
- Implementation of deploying redis sentry in k8s
- Tableapi & SQL and MySQL data query of Flink
- [advanced ROS] lesson 5 TF coordinate transformation in ROS
猜你喜欢

【ROS进阶篇】第五讲 ROS中的TF坐标变换

opencv学习笔记四--银行卡号识别

Rearrangement of overloaded operators

leetcode:329. Longest increasing path in matrix

The first word of JVM -- detailed introduction to JVM and analysis of runtime data area

opencv学习笔记六--图像拼接

What are the books that have greatly improved the thinking and ability of programming?

微服务追踪SQL(支持Isto管控下的gorm查询追踪)
Implementation of deploying redis sentry in k8s

Music player development example (can be set up)
随机推荐
leetcode:329. 矩阵中的最长递增路径
How to realize clock signal frequency division?
Skywalking 6.4 distributed link tracking usage notes
智能运维实战:银行业务流程及单笔交易追踪
Tiantou village, Guankou Town, Xiamen special agricultural products Tiantou Village special agricultural products ant new village 7.1 answer
ArrayList 扩容详解,扩容原理[通俗易懂]
TypeScript:const
入侵检测模型(An Intrusion-Detection Model)
Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching
What if you are always bullied because you are too honest in the workplace?
Flink 系例 之 TableAPI & SQL 与 Kafka 消息插入
Summary of week 22-06-26
Build MySQL master-slave server under Ubuntu 14.04
常见健身器材EN ISO 20957认证标准有哪些
skywalking 6.4 分布式链路跟踪 使用笔记
[leetcode] 16. The sum of the nearest three numbers
What are the books that have greatly improved the thinking and ability of programming?
微信小程序02-轮播图实现与图片点击跳转
Ubuntu 14.04下搭建MySQL主从服务器
深度分析数据在内存中的存储形式