Skip to content

Commit b9abc27

Browse files
committed
Refactor album-details animation: Update h2 and h4 styles
1 parent 9067a3d commit b9abc27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/styles/album-details.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ export default css`
181181
font-size: 3rem;
182182
animation: h2;
183183
}
184+
h2 span {
185+
display: inline;
186+
}
184187
@keyframes h2 {
185188
to {
186189
font-size: 2.5rem;
@@ -203,10 +206,6 @@ export default css`
203206
}
204207
}
205208
@keyframes h4-text {
206-
25% {
207-
transform: scale(0.5);
208-
opacity: 0.5;
209-
}
210209
to {
211210
height: 0;
212211
opacity: 0;
@@ -218,6 +217,7 @@ export default css`
218217
font-size: 1rem;
219218
animation: h4-text;
220219
height: 1.3rem;
220+
overflow: visible;
221221
}
222222
h4 + h4 {
223223
height: 2.5rem;

0 commit comments

Comments
 (0)