-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp
60 lines (51 loc) · 1.24 KB
/
temp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
$slider-name: typing-slider
$slides: 1
$typing-duration: 5s
$tab-letters: 14 //number of characters in each paragraph
$slider-font-size: 5rem
$background: #FFCC00
@keyframes cursor
from, to
border-color: transparent
50%
border-color: black
@keyframes typing
from
width: 100%
90%, to
width: 0
@keyframes slide
#{calc(100% / $slides)}
font-size: $slider-font-size
letter-spacing: 3px
to
font-size: 0
letter-spacing: 0
.landing-body
font-family: Consolas, monospace
font-weight: bold
text-align: center
white-space: nowrap
.landing-body h1
position: relative
display: inline
font-size: 0
text-transform: uppercase
letter-spacing: 0
animation: slide $typing-duration * $slides step-start infinite
.landing-body h1::after
content: ""
position: absolute
top: 0
right: 0
bottom: 0
border-left: 3px solid black
// background-color: $background;
animation: typing $typing-duration infinite, cursor 1s infinite
@each $letters in $tab-letters
$i: index($tab-letters, $letters)
.landing-body h1:nth-child(#{$i})
animation-delay: $typing-duration * ($i - 1)
&::after
animation-delay: $typing-duration * ($i - 1)
animation-timing-function: steps(#{$letters}), step-end