-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy pathTextRotater.scss
More file actions
46 lines (39 loc) · 780 Bytes
/
TextRotater.scss
File metadata and controls
46 lines (39 loc) · 780 Bytes
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
.text-rotater {
overflow: hidden;
position: relative;
display: inline-block;
padding: 0 0.3em;
vertical-align: bottom;
&::after,
&::before {
content: "";
position: absolute;
height: 3px;
left: 0;
}
&::after {
top: 0;
background-image: linear-gradient(#{getColor(elephant)}, transparent);
}
&::before {
bottom: 0;
z-index: 1;
background-image: linear-gradient(transparent, #{getColor(elephant)});
}
> * {
display: inline-block;
}
}
.text-rotater--slide-up {
transition: transform 1s;
transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
transform: translateY(-100%);
}
.text-rotater__wrap {
display: inline-flex;
flex-direction: column;
text-align: left;
> * {
flex-shrink: 0;
}
}