当前位置:网站首页>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>边栏推荐
- [Cloudera][ImpalaJDBCDriver](500164)Error initialized or created transport for authentication
- JVM second conversation -- JVM memory model and garbage collection
- Implementation of wechat web page subscription message
- What are the books that have greatly improved the thinking and ability of programming?
- Demand prioritization method based on value quantification
- DirectX修复工具V4.1公测![通俗易懂]
- idea中新建的XML文件变成普通文件的解决方法.
- 定了!2022海南二级造价工程师考试时间确定!报名通道已开启!
- solidty-基础篇-基础语法和定义函数
- 《QT+PCL第六章》点云配准icp系列2
猜你喜欢

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

Introduction to MySQL audit plug-in

【ROS进阶篇】第五讲 ROS中的TF坐标变换
![Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching](/img/50/5c8adacea78e470c255070c8621ddd.png)
Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching

Music player development example (can be set up)

微信小程序03-文字一左一右显示,行内块元素居中

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

How to realize clock signal frequency division?

Task. Run(), Task. Factory. Analysis of behavior inconsistency between startnew() and new task()

OpenSSL client programming: SSL session failure caused by an insignificant function
随机推荐
Implementation of wechat web page subscription message
JVM第二话 -- JVM内存模型以及垃圾回收
TS报错 Don‘t use `object` as a type. The `object` type is currently hard to use
[Cloudera][ImpalaJDBCDriver](500164)Error initialized or created transport for authentication
Demand prioritization method based on value quantification
Sort out the four commonly used sorting functions in SQL
Fix the failure of idea global search shortcut (ctrl+shift+f)
《QT+PCL第六章》点云配准icp系列5
Mongodb second talk - - mongodb High available Cluster Implementation
Opencv learning note 4 -- bank card number recognition
TypeScript:var
数据产品经理需要掌握哪些数据能力?
Build MySQL master-slave server under Ubuntu 14.04
购物商城6.27待完成
DirectX修复工具V4.1公测![通俗易懂]
How to realize clock signal frequency division?
Internet hospital system source code hospital applet source code smart hospital source code online consultation system source code
cmake 基本使用过程
What are the requirements for NPDP product manager international certification registration?
MySQL审计插件介绍