Last active
April 7, 2021 17:17
-
-
Save brettmillerb/58e3054e2eb4159f35760d637d9d8a16 to your computer and use it in GitHub Desktop.
Twitch Stream Starting Animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
body { | |
background-color: rgb(54, 57, 63); | |
padding-top: 5em; | |
display: flex; | |
text-align: center; | |
} | |
.typewriter { | |
width: 95%; | |
position: absolute; | |
top: 50%; | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} | |
.typewriter h1 { | |
overflow: hidden; | |
/* Ensures the content is not revealed until the animation */ | |
border-right: .15em solid white; | |
/* The typwriter cursor */ | |
white-space: nowrap; | |
/* Keeps the content on a single line */ | |
margin: 0 auto; | |
/* Gives that scrolling effect as the typing happens */ | |
letter-spacing: .15em; | |
/* Adjust as needed */ | |
color: antiquewhite; | |
font-size: 7em; | |
font-family: 'Fira Code', monospace; | |
animation: | |
typing 3.5s steps(30, end), | |
blink-caret .75s step-end infinite; | |
animation-iteration-count: infinite | |
} | |
/* The typing effect */ | |
@keyframes typing { | |
from { | |
width: 0 | |
} | |
to { | |
width: 100% | |
} | |
} | |
/* The typewriter cursor effect */ | |
@keyframes blink-caret { | |
from, | |
to { | |
border-color: transparent | |
} | |
50% { | |
border-color: orange; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="typewriter"> | |
<h1>Be Right Back.....</h1> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
body { | |
background-color: rgb(54, 57, 63); | |
padding-top: 5em; | |
display: flex; | |
text-align: center; | |
vertical-align: center; | |
} | |
.typewriter { | |
width: 95%; | |
position: absolute; | |
top: 50%; | |
-ms-transform: translateY(-50%); | |
transform: translateY(-50%); | |
} | |
.typewriter h1 { | |
overflow: hidden; | |
/* Ensures the content is not revealed until the animation */ | |
border-right: .15em solid white; | |
/* The typwriter cursor */ | |
white-space: nowrap; | |
/* Keeps the content on a single line */ | |
margin: 0 auto; | |
/* Gives that scrolling effect as the typing happens */ | |
letter-spacing: .15em; | |
/* Adjust as needed */ | |
color: antiquewhite; | |
font-size: 7em; | |
font-family: 'Fira Code', monospace; | |
animation: | |
typing 3.5s steps(30, end), | |
blink-caret .75s step-end infinite; | |
animation-iteration-count: infinite | |
} | |
/* The typing effect */ | |
@keyframes typing { | |
from { | |
width: 0 | |
} | |
to { | |
width: 100% | |
} | |
} | |
/* The typewriter cursor effect */ | |
@keyframes blink-caret { | |
from, | |
to { | |
border-color: transparent | |
} | |
50% { | |
border-color: orange; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="typewriter"> | |
<h1>Stream Starting Soon.</h1> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment