<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Scrolling Example</title>
<style>
.scrolling-text {
white-space: nowrap;
overflow: hidden;
width: 100%;
animation: scrolling 20s linear infinite;
}
@keyframes scrolling {
0% { transform: translateX(0%); }
100% { transform: translateX(-100%); }
}
</style>
</head>
<body>
<div class="scrolling-text">
<span>Your scrolling text goes here. Repeat as needed to fill the space.</span>
</div>
</body>
</html>
02-23
3470
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-02
4014
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-21
1508
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)