<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scroll Effect</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
.section {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: white;
text-align: center;
transition: background-color 0.5s;
}
.section:nth-of-type(odd) {
background-color: #007bff;
}
.section:nth-of-type(even) {
background-color: #28a745;
}
</style>
</head>
<body>
<div class="section">
<h1>Section 1</h1>
</div>
<div class="section">
<h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html> <h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html> <h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html> <h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html> <h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html> <h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html> <h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html> <h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html> <h1>Section 2</h1>
</div>
<div class="section">
<h1>Section 3</h1>
</div>
<div class="section">
<h1>Section 4</h1>
</div>
</body>
</html>
滚动效果
原创
©著作权归作者所有:来自51CTO博客作者小慕先森的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
文字滚动效果
需要引入jQueryHTML<!doctype html><html><head><meta charset="utf-8"> <meta
jQuery 文字滚动 animate List css -
jquery滚动公告效果
仿Twitter的公告效果:方法如下:1、HTML 部分:<ul id="twitter"> <li>第一条消息</li> <li>第二条消息</li> <li>第三条消息<
jquery javascript ViewUI twitter ide -
javascript图片滚动效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta htt
JavaScript 休闲 javascript滚动效果 图片跑马灯 javascript跑马灯