<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>js文字无限循环向上滚动</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#scroll {
width: 300px;
height: 300px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #3F51B5;
overflow: hidden;
}
#scroll #con1,
#con2 {
width: 100%;
}
.title {
color: red;
}
#scroll p {
text-align: center;
h