feat: Update animation to display alternating messages with fade effect
This commit is contained in:
@@ -17,19 +17,20 @@
|
|||||||
}
|
}
|
||||||
.text {
|
.text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
animation: moveText 5s infinite alternate;
|
animation: fadeText 6s infinite;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
@keyframes moveText {
|
@keyframes fadeText {
|
||||||
0% { transform: translate(-50%, -50%); }
|
0%, 33% { opacity: 1; }
|
||||||
50% { transform: translate(10%, 10%); }
|
50%, 83% { opacity: 0; }
|
||||||
100% { transform: translate(50%, 50%); }
|
100% { opacity: 1; }
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="text">The Next BIG Thing...</div>
|
<div class="text">The Next BIG Thing...</div>
|
||||||
<div class="text" style="animation-delay: 2.5s;">...coming soon</div>
|
<div class="text" style="animation-delay: 2s;">stay tuned</div>
|
||||||
|
<div class="text" style="animation-delay: 4s;">coming soon</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user