CSS实现上下循环滚动效果

更新时间:2023-07-28 04:47:08 阅读: 评论:0

CSS实现上下循环滚动效果HTML:
<div class="wrap">皮豇豆
<div class="content">
<p>第⼀⾏数据</p>
<p>第⼆⾏数据</p>
</div>
</div>
CSS:如何克服心理障碍
.wrap{height:30px;overflow: hidden;position: absolute;top:30;left: 100;width: 100%}
p{margin:0;height: 30px;width: 100%}子不孝
.content p{
position: absolute;
}
@-webkit-keyframes anim1{
0% {top: 30px;opacity: 1}
战国时期地图50% {top: -30px;opacity: 1}
75% {top: -30px ;opacity: 0}
王力宏哪里人100%{top:30px;opacity: 0}
b超能查什么
}
@-webkit-keyframes anim2{
0% {top: -30px;opacity: 0}
25% {top: 30px;opacity: 0}
50% {top: 30px;opacity: 1}
100%{top: -30px;opacity: 1}
}
.content p:nth-child(1){background-color: red;}
.content p:nth-child(2){background-color: yellow;}软炸虾仁的家常做法
.content p:nth-child(1){
-webkit-animation: anim1 3s linear infinite;
}
.content p:nth-child(2){
-webkit-animation: anim2 3s linear infinite;
}
安全生产先进个人主要事迹

本文发布于:2023-07-28 04:47:08,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1099516.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图