Template:Typing Text Effect/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
LordSkorne7 (talk | contribs) Created page with "→Template:Typing Text Effect/styles.css: →Container with blinking cursor effect: .cursor { position: relative; width: 24em; margin: 0 auto; border-right: 2px solid rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; transform: translateY(-50%); display: inline-block; } →Typewriter animation: .typewriter-animation { animation: typewriter 5s steps(50, end) 1s 1 normal both, blinkingCursor 500ms steps(50, end) infinite n..." |
LordSkorne7 (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
.cursor { |
.cursor { |
||
position: relative; |
position: relative; |
||
display: inline-block; |
|||
margin: 0 auto; |
margin: 0 auto; |
||
border-right: 2px solid rgba(255, 255, 255, 0.75); |
border-right: 2px solid rgba(255, 255, 255, 0.75); |
||
white-space: nowrap; |
white-space: nowrap; |
||
overflow: hidden; |
overflow: hidden; |
||
background: transparent; |
|||
transform: translateY(-50%); |
|||
opacity: 1; |
|||
width: auto; |
|||
max-width: 100%; |
|||
vertical-align: middle; |
|||
} |
} |
||
Latest revision as of 07:48, April 16, 2025
/* Template:Typing Text Effect/styles.css */
/* Container with blinking cursor effect */
.cursor {
position: relative;
display: inline-block;
margin: 0 auto;
border-right: 2px solid rgba(255, 255, 255, 0.75);
white-space: nowrap;
overflow: hidden;
background: transparent;
opacity: 1;
width: auto;
max-width: 100%;
vertical-align: middle;
}
/* Typewriter animation */
.typewriter-animation {
animation:
typewriter 5s steps(50, end) 1s 1 normal both,
blinkingCursor 500ms steps(50, end) infinite normal;
}
@keyframes typewriter {
from { width: 0; }
to { width: 100%; }
}
@keyframes blinkingCursor {
from { border-right-color: rgba(255, 255, 255, 0.75); }
to { border-right-color: transparent; }
}