基于css的轮播
来源:互联网 发布:凯佰赫战盾数据 编辑:程序博客网 时间:2024/05/29 17:36
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title></title>
<style type="text/css">
.content-carousel{
margin: 0 auto;
width: 10rem;
height: 10rem;
background-color:#f86000;
/*position: relative;*/
overflow: hidden;
}
.content-photo{
position: relative;
width: 400%;
height: 10rem;
margin: 0;
padding: 0;
left:0%;
animation-name:myfirst;
animation-duration: 20s;
animation-iteration-count:infinite;
animation-direction:alternate;
}
.content-photo li{
float: left;
width: 10rem;
height: 10rem;
list-style-type: none;
text-align: center;
line-height: 10rem;
color: white;
}
@keyframes myfirst{
0% {left:0%; top:0px;}
30% {left:-100%; top:0px;}
35% {left:-100%; top:0px;}
65% {left:-200%; top:0px;}
70% {left:-200%; top:0px;}
100% {left:-300%; top:0px;}
/*100% {left:-400%; top:0px;}*/
}
</style>
</head>
<body>
<!-- <div class="objectMachine">
</div> -->
<div class="content-carousel">
<ul class="content-photo">
<li style="background: red">1</li>
<li style="background: blue">2</li>
<li style="background: green">3</li>
<li style="background: black">4</li>
</ul>
</div>
<script type="text/javascript" src="../js/jquery-3.2.1.js"></script>
<script type="text/javascript">
</script>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title></title>
<style type="text/css">
.content-carousel{
margin: 0 auto;
width: 10rem;
height: 10rem;
background-color:#f86000;
/*position: relative;*/
overflow: hidden;
}
.content-photo{
position: relative;
width: 400%;
height: 10rem;
margin: 0;
padding: 0;
left:0%;
animation-name:myfirst;
animation-duration: 20s;
animation-iteration-count:infinite;
animation-direction:alternate;
}
.content-photo li{
float: left;
width: 10rem;
height: 10rem;
list-style-type: none;
text-align: center;
line-height: 10rem;
color: white;
}
@keyframes myfirst{
0% {left:0%; top:0px;}
30% {left:-100%; top:0px;}
35% {left:-100%; top:0px;}
65% {left:-200%; top:0px;}
70% {left:-200%; top:0px;}
100% {left:-300%; top:0px;}
/*100% {left:-400%; top:0px;}*/
}
</style>
</head>
<body>
<!-- <div class="objectMachine">
</div> -->
<div class="content-carousel">
<ul class="content-photo">
<li style="background: red">1</li>
<li style="background: blue">2</li>
<li style="background: green">3</li>
<li style="background: black">4</li>
</ul>
</div>
<script type="text/javascript" src="../js/jquery-3.2.1.js"></script>
<script type="text/javascript">
</script>
</body>
</html>
阅读全文
0 0
- 基于css的轮播
- 基于ajax的消息轮播
- 基于ViewPager的轮播完美实现
- Android基于定时器的图片轮播
- 基于jquery的轮播插件操作
- html+css轮播
- css轮播
- Jquery图片滚动轮播插件(一个不用你写CSS的轮播插件)
- 图片轮播--纯css
- CSS实现图片轮播
- CSS + jQuery banner 轮播
- CSS快速制作图片轮播的焦点
- 用CSS做文字向上移动的轮播
- jq + css 实现简单的图片轮播效果
- 图片轮播插件-基于HTML5+CSS3+JavaSript的响应式图片轮播
- 基于JQuery的实现图片轮播效果(焦点图)
- 实现文字轮播的效果--基于MSclass插件
- 基于bootstrap的网页开发之图片轮播
- Transform类 RotateAround() 太阳、地球、月亮围绕旋转
- 初步接触jndi
- ILOG学习笔记
- Oracle学习笔记
- MySql含有GROUP BY子句的查询中如何显示COUNT()为0的结果
- 基于css的轮播
- C++ map和hash_map简单对比
- 职场法则
- C语言实现ping功能(Linux & Mac OS系统下)有注释
- Java线程池ExecutorService方法详解
- spring cloud 请求服务失败, 重试配置
- 层次聚类算法原理及实现
- spring boot 使用Swagger2
- 共同学习Java源代码-多线程与并发-AbstractExecutorService类(二)