.html file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animated Stylish Banner</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
}
.banner {
text-align: center;
padding: 20px;
background-color: #3498db;
color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
animation: floatUp 3s ease-in-out infinite;
}
h1 {
font-size: 3em;
margin-bottom: 10px;
}
p {
font-size: 1.2em;
}
@keyframes floatUp {
0% {
transform: translateY(0);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: translateY(-20px);
opacity: 0;
}
}
</style>
</head>
<body>
<div class="banner">
<h1>Welcome</h1>
<p>Explore the World of Animation</p>
</div>
<script>
// No JavaScript functionality needed for this example
</script>
</body>
</html>





Leave a Reply