Template:Text Shuffle/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
turned into slop atp |
No edit summary |
||
| Line 3: | Line 3: | ||
.TextShuffler { |
.TextShuffler { |
||
font-size: 1.5em; |
font-size: 1.5em; |
||
text-align: center; |
|||
color: cyan; |
color: cyan; |
||
height: 1.5em; |
height: 1.5em; |
||
display: flex; |
display: flex; |
||
align-items: center; |
|||
justify-content: center; |
|||
position: relative; |
|||
} |
} |
||
Revision as of 17:35, April 18, 2025
/* turned into slop atp */
.TextShuffler {
font-size: 1.5em;
color: cyan;
height: 1.5em;
display: flex;
}
.TextShuffler .word {
opacity: 0;
animation: fadeCycle 8s linear infinite;
position: absolute;
transition: opacity 0.5s ease-in-out;
}
.TextShuffler .word:nth-child(1) { animation-delay: 0s; }
.TextShuffler .word:nth-child(2) { animation-delay: 2s; }
.TextShuffler .word:nth-child(3) { animation-delay: 4s; }
.TextShuffler .word:nth-child(4) { animation-delay: 6s; }
@keyframes fadeCycle {
0% { opacity: 0; }
5% { opacity: 1; }
25% { opacity: 1; }
30% { opacity: 0; }
100% { opacity: 0; }
}