<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.parallax-container {
height: 500px;
overflow: hidden;
position: relative;
}
.parallax-image {
width: 100%;
height: auto;
position: absolute;
top: 0;
left: 0;
transform: translateZ(0);
z-index: -1;
}
.parallax-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff; /* Adjust text color as needed */
text-align: center;
}
</style>
</head>
<body>
<div class="parallax-container">
<img class="parallax-image" src="your-image.jpg" alt="Parallax Image">
<div class="parallax-content">
<h1>Your Parallax Content</h1>
<p>Some additional text or content</p>
</div>
</div>
<script>
</script>
</body>
</html>