Skip to content

Commit f613990

Browse files
committed
Fix: Prevent background image resizing on content expansion
Added 'background-attachment: fixed;' and 'background-repeat: no-repeat;' to the '.play-area' class. This ensures the background image remains fixed to the viewport and does not resize or move when the content height changes, providing a more stable visual experience.
1 parent 17292be commit f613990

File tree

1 file changed

+2
-0
lines changed
  • examples/bedtime-story-teller/assets

1 file changed

+2
-0
lines changed

examples/bedtime-story-teller/assets/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ body {
3030
background-image: url('./img/storyteller-background.png');
3131
background-size: cover;
3232
background-position: center;
33+
background-repeat: no-repeat;
34+
background-attachment: fixed;
3335
display: flex;
3436
justify-content: center;
3537
}

0 commit comments

Comments
 (0)