Skip to content

Commit 2f53ffe

Browse files
authored
fixed line position and animation (#303)
1 parent 65e3ae8 commit 2f53ffe

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

sections/do-whats-right-section/WhatsRight.module.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
.whatsRightAnimateOnce:before {
22
animation: whatsRightFirstLineAnimation 3.5s linear 0s 1 forwards;
33
}
4+
5+
@-moz-document url-prefix() {
6+
.whatsRightAnimateOnce:before {
7+
animation: whatsRightFirstLineAnimationFirefox 3.5s linear 0s 1 forwards;
8+
}
9+
}
10+
411
.whatsRightAnimateOnce .whatsRightHeadingHighlight:after {
512
animation: whatsRightLeftBranchAnimation 0.75s linear 3s 1 forwards;
613
}
@@ -34,7 +41,24 @@
3441
height: 663px;
3542
}
3643
100% {
37-
display: none;
44+
background-color: transparent;
45+
}
46+
}
47+
48+
@keyframes whatsRightFirstLineAnimationFirefox {
49+
0% {
50+
background-color: #ff86c6;
51+
height: 0;
52+
}
53+
80% {
54+
background-color: #ff86c6;
55+
height: 665px;
56+
}
57+
95% {
58+
background-color: #ff86c6;
59+
height: 665px;
60+
}
61+
100% {
3862
background-color: transparent;
3963
}
4064
}

sections/do-whats-right-section/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ const Item = styled.div`
136136
content: '';
137137
}
138138
139+
@-moz-document url-prefix() {
140+
:before,
141+
:after {
142+
top: 2px;
143+
}
144+
}
145+
139146
/* horizontal pink line to left of each heading */
140147
:before {
141148
width: 50px;

0 commit comments

Comments
 (0)