Skip to content

Commit ee6c21c

Browse files
committed
fix: smooth transition
1 parent 921d319 commit ee6c21c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

stylus/website/index.styl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ body {
126126

127127
&.top-banner-open {
128128
margin-top: 5px;
129-
transition: all 0.2s linear;
129+
transition: all 0.4s linear;
130130

131131
+breakpoint('tablet') {
132132
margin-top: 48px;
@@ -1848,13 +1848,14 @@ footer {
18481848
width: 100%;
18491849
height: 48px;
18501850
z-index: 100;
1851+
transition: all 0.4s linear;
18511852

18521853
&.closed {
18531854
visibility: hidden;
18541855
height: 0;
18551856
opacity: 0;
18561857
padding: 0;
1857-
transition: all 0.1s linear;
1858+
transition: all 0.4s linear;
18581859
}
18591860
}
18601861

@@ -1875,13 +1876,14 @@ footer {
18751876
left: 0;
18761877
right: 0;
18771878
overflow: hidden;
1879+
transition: all 0.4s linear;
18781880

18791881
&.closed {
18801882
visibility: hidden;
18811883
height: 0;
18821884
opacity: 0;
18831885
padding: 0;
1884-
transition: all 0.2s linear;
1886+
transition: all 0.4s linear;
18851887
}
18861888

18871889
.top-banner-container {
@@ -1947,6 +1949,6 @@ footer {
19471949

19481950
&.hide {
19491951
height: 0;
1950-
transition: all 0.2s linear;
1952+
transition: all 0.4s linear;
19511953
}
19521954
}

0 commit comments

Comments
 (0)