Skip to content

Commit 834a9d7

Browse files
committed
fix transition
1 parent c26e14d commit 834a9d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

26 - Stripe Follow Along Nav/index-FINISHED.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h2>Cool</h2>
128128
border-radius:2px;
129129
transition: all 0.5s;
130130
transform: translateY(100px);
131-
will-change: transform;
131+
will-change: opacity;
132132
display: none;
133133
}
134134

@@ -149,7 +149,7 @@ <h2>Cool</h2>
149149
background: #fff;
150150
border-radius: 4px;
151151
box-shadow: 0 50px 100px rgba(50,50,93,.1), 0 15px 35px rgba(50,50,93,.15), 0 5px 15px rgba(0,0,0,.1);
152-
transition:all 0.3s, opacity 0.1s, translate 0.2s;
152+
transition:all 0.3s, opacity 0.1s, transform 0.2s;
153153
transform-origin: 50% 0;
154154
display: flex;
155155
justify-content: center;

26 - Stripe Follow Along Nav/index-START.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h2>Cool</h2>
128128
border-radius:2px;
129129
transition: all 0.5s;
130130
transform: translateY(100px);
131-
will-change: transform;
131+
will-change: opacity;
132132
display: none;
133133
}
134134

@@ -149,7 +149,7 @@ <h2>Cool</h2>
149149
background: #fff;
150150
border-radius: 4px;
151151
box-shadow: 0 50px 100px rgba(50,50,93,.1), 0 15px 35px rgba(50,50,93,.15), 0 5px 15px rgba(0,0,0,.1);
152-
transition:all 0.3s, opacity 0.1s, translate 0.2s;
152+
transition:all 0.3s, opacity 0.1s, transform 0.2s;
153153
transform-origin: 50% 0;
154154
display: flex;
155155
justify-content: center;

0 commit comments

Comments
 (0)