pascal web code
pascal web code
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Creative Animation with Video Background</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
overflow: hidden;
}
.video-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: white;
}
.animated-text {
font-size: 4rem;
font-weight: bold;
animation: fadeInOut 5s infinite;
}
@keyframes fadeInOut {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.content {
position: absolute;
top: 100%;
width: 100%;
color: white;
font-size: 2rem;
padding: 20px;
text-align: center;
background: rgba(0, 0, 0, 0.6);
}
.scrollable-content {
margin-top: 100vh;
padding: 50px;
font-size: 1.5rem;
color: white;
background: rgba(0, 0, 0, 0.6);
}
</style>
</head>
<body>
<p>This content appears after scrolling down, and you can add more
information here. It's responsive and adjusts with the screen size.</p>
</div>
</body>
</html>