Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<li>CSS Fancy Buttons: Brad Hussey</li>
<li>Vampire: Alvaro Montoro</li>
<li>Reptillian Eye: Josetxu</li>
<li>CSS Typewriter: Marko</li>
</ol>
6 changes: 6 additions & 0 deletions CSS Typewriter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<link rel="stylesheet" href="styles.css" />
<div class="wrapper">
<div class="typing-demo">
This is a typing demo.
</div>
</div>
28 changes: 28 additions & 0 deletions CSS Typewriter/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.wrapper {
height: 100vh;
/*This part is important for centering*/
display: grid;
place-items: center;
}

.typing-demo {
width: 22ch;
animation: typing 2s steps(22), blink .5s step-end infinite alternate;
white-space: nowrap;
overflow: hidden;
border-right: 3px solid;
font-family: monospace;
font-size: 2em;
}

@keyframes typing {
from {
width: 0
}
}

@keyframes blink {
50% {
border-color: transparent
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
<li>CSS 3 Fancy Buttons</li>
<li>Vampire with CSS</li>
<li>Reptillian Eye</li>
<li>CSS Typewriter</li>
</ol>