105 lines
2.0 KiB
CSS
105 lines
2.0 KiB
CSS
|
body {
|
||
|
background-color: #232f3a;
|
||
|
height: 100vh;
|
||
|
display: grid;
|
||
|
place-items: center;
|
||
|
}
|
||
|
body .draw-box {
|
||
|
overflow: hidden;
|
||
|
position: relative;
|
||
|
margin-top: 60px;
|
||
|
width: 335px;
|
||
|
}
|
||
|
body .draw-box .typewriter-effect {
|
||
|
overflow: hidden;
|
||
|
-webkit-animation: typingEffect 1.6s steps(22) forwards, blinkTextCursorRed 1s 1.7s;
|
||
|
animation: typingEffect 1.6s steps(22) forwards, blinkTextCursorRed 1s 1.7s;
|
||
|
width: 0;
|
||
|
color: #ff8686;
|
||
|
height: 19px;
|
||
|
margin-bottom: 6px;
|
||
|
font-size: 22px;
|
||
|
white-space: nowrap;
|
||
|
vertical-align: middle;
|
||
|
line-height: 0.9;
|
||
|
font-family: "Barlow Semi Condensed", sans-serif;
|
||
|
}
|
||
|
body .draw-box .typewriter-effect2 {
|
||
|
overflow: hidden;
|
||
|
-webkit-animation: typingEffect 1.6s steps(22) forwards 1.7s, blinkTextCursor 1s infinite 1.7s;
|
||
|
animation: typingEffect 1.6s steps(22) forwards 1.7s, blinkTextCursor 1s infinite 1.7s;
|
||
|
width: 0;
|
||
|
color: #e8e8e8;
|
||
|
height: 30px;
|
||
|
font-size: 34px;
|
||
|
white-space: nowrap;
|
||
|
vertical-align: middle;
|
||
|
line-height: 0.9;
|
||
|
font-family: "Barlow Semi Condensed", sans-serif;
|
||
|
}
|
||
|
@-webkit-keyframes typingEffect {
|
||
|
from {
|
||
|
width: 0;
|
||
|
}
|
||
|
to {
|
||
|
width: 98%;
|
||
|
}
|
||
|
}
|
||
|
@keyframes typingEffect {
|
||
|
from {
|
||
|
width: 0;
|
||
|
}
|
||
|
to {
|
||
|
width: 98%;
|
||
|
}
|
||
|
}
|
||
|
@-webkit-keyframes blinkTextCursor {
|
||
|
from {
|
||
|
border-right: 3px solid #f8f8f8;
|
||
|
}
|
||
|
to {
|
||
|
border-right: transparent;
|
||
|
}
|
||
|
}
|
||
|
@keyframes blinkTextCursor {
|
||
|
from {
|
||
|
border-right: 3px solid #f8f8f8;
|
||
|
}
|
||
|
to {
|
||
|
border-right: transparent;
|
||
|
}
|
||
|
}
|
||
|
@-webkit-keyframes blinkTextCursorRed {
|
||
|
from {
|
||
|
border-right: 3px solid #ff8686;
|
||
|
}
|
||
|
to {
|
||
|
border-right: transparent;
|
||
|
}
|
||
|
}
|
||
|
@keyframes blinkTextCursorRed {
|
||
|
from {
|
||
|
border-right: 3px solid #ff8686;
|
||
|
}
|
||
|
to {
|
||
|
border-right: transparent;
|
||
|
}
|
||
|
}
|
||
|
body .draw-box svg {
|
||
|
width: 93%;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
body .draw-box svg .stroke {
|
||
|
fill: none;
|
||
|
stroke: #e8e8e8;
|
||
|
stroke-width: 0.8;
|
||
|
}
|
||
|
body .draw-box svg .coffeeColor {
|
||
|
fill: #b59440;
|
||
|
}
|
||
|
body .draw-box svg .steamColor {
|
||
|
fill: #ddd;
|
||
|
}
|
||
|
body .draw-box svg .ripple {
|
||
|
transform: translate3d(-30%, 100%, 0);
|
||
|
}
|