我有一个列表,滚动与css转换,但我想有相同的速度,无论列表有多长。如何使用jQuery控制速度?
这是css和指向笔的链接:
https://codepen.io/disco_p/pen/BvWdqX?editors=1100
section {
height: 90vh;
background: #000;
}
ul {
margin: 0;
padding: 0;
list-style: none;
color: #fff;
font-size: em(18);
text-align: center;
font-weight: 500;
column-count: 4;
column-width: 200px;
column-gap: 50px;
animation: floatTextUp 3s infinite linear;
}
li {
margin-bottom: 1.1em;
}
.scroll {
height: 200px;
overflow: hidden;
position: relative;
}
@keyframes floatTextUp {
to {
transform: translateY(100%);
}
}