Template:Text Shuffle/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| (26 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* |
/* turned into slop atp */ |
||
/* found some good tutorial but well lets see */ |
|||
.TextShuffler { |
.TextShuffler { |
||
position: relative; |
|||
display: flex; |
|||
visibility: hidden; |
|||
flex-direction: column; |
|||
color: #ffffff; |
|||
| ⚫ | |||
margin-block: var(--space-md); |
|||
} |
} |
||
.TextShuffler > div { |
.TextShuffler > div { |
||
position: absolute; |
|||
height: 1.5em; |
|||
visibility: visible; |
|||
display: flex; |
|||
top: 0; |
|||
align-items: center; |
|||
font-size: var(--font-size-large); |
|||
justify-content: center; |
|||
opacity: 0; |
|||
| ⚫ | |||
transition: opacity 0.7s ease-in-out; |
|||
text-shadow: 0 0 5px; |
|||
pointer-events: none; |
|||
} |
} |
||
.TextShuffler > :nth-child(1) { animation-delay: 0s; } |
|||
| ⚫ | |||
.TextShuffler > :nth-child(2) { animation-delay: 8s; } |
|||
0% { transform: translateY(0); } |
|||
.TextShuffler > :nth-child(3) { animation-delay: 16s; } |
|||
20% { transform: translateY(-1.5em); } |
|||
.TextShuffler > :nth-child(4) { animation-delay: 24s; } |
|||
40% { transform: translateY(-3em); } |
|||
.TextShuffler > :nth-child(5) { animation-delay: 32s; } |
|||
60% { transform: translateY(-4.5em); } |
|||
.TextShuffler > :nth-child(6) { animation-delay: 40s; } |
|||
80% { transform: translateY(-6em); } |
|||
.TextShuffler > :nth-child(7) { animation-delay: 48s; } |
|||
100% { transform: translateY(0); } |
|||
| ⚫ | |||
0% { opacity: 0; } |
|||
2% { opacity: 1; } |
|||
8% { opacity: 1; } |
|||
10% { opacity: 0; } |
|||
100% { opacity: 0; } |
|||
} |
} |
||
Latest revision as of 02:20, May 3, 2025
/* turned into slop atp */
.TextShuffler {
position: relative;
visibility: hidden;
color: #ffffff;
margin-block: var(--space-md);
}
.TextShuffler > div {
position: absolute;
visibility: visible;
top: 0;
font-size: var(--font-size-large);
opacity: 0;
animation: fadeCycle 56s linear infinite;
transition: opacity 0.7s ease-in-out;
text-shadow: 0 0 5px;
pointer-events: none;
}
.TextShuffler > :nth-child(1) { animation-delay: 0s; }
.TextShuffler > :nth-child(2) { animation-delay: 8s; }
.TextShuffler > :nth-child(3) { animation-delay: 16s; }
.TextShuffler > :nth-child(4) { animation-delay: 24s; }
.TextShuffler > :nth-child(5) { animation-delay: 32s; }
.TextShuffler > :nth-child(6) { animation-delay: 40s; }
.TextShuffler > :nth-child(7) { animation-delay: 48s; }
@keyframes fadeCycle {
0% { opacity: 0; }
2% { opacity: 1; }
8% { opacity: 1; }
10% { opacity: 0; }
100% { opacity: 0; }
}