<!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>