<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script type="text/javascript" src="/template/default/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript">
$(function(){
var num = $('.notice_active').find('li').length;
if(num > 1){
setInterval(()=>{
$(".notice_active").find('ul').animate({marginTop : "-2rem"}
,500
,function(){
$(this).css({marginTop : "0rem"}).find("li:first").appendTo(this);
})
},2000)
}
});
</script>
<style type="text/css">
.notice_active {
border: 1px solid #ff0000;
height: 2rem;
overflow: hidden;
position: relative;
}
.notice_active ul {
padding: 0;
margin: 0;
list-style: none;
}
.notice_active li.notice_active_ch a {
color: #656972;
font-size: 1rem;
line-height: 2rem;
}
</style>
</head>
<body>
<div class="notice_active">
<ul>
<li class="notice_active_ch"> <a href="#">滑动轮播1a去哦我我iwoi我i滑动轮播3滑</a> </li>
<li class="notice_active_ch"> <a href="#">滑动轮播2滑动轮播3</a> </li>
<li class="notice_active_ch"> <a href="#">滑动轮播3滑动轮播3</a> </li>
</ul>
</div>
</body>
</html>