Looking for a unique white container adorned with chat bubbles masked to a gradient effect that will dynamically change as you scroll, similar to the example provided:
In my attempt to achieve this, I made sure that the portion of .container
behind any chatBubble
is transparent so that the background of .root
remains visible.
.root {
background-color: linear-gradient(red, yellow);
width: 100vw;
height: 100vh;
}
.container {
width: 100%;
height: 100vh;
background-color: white
}
.chatBubble {
background-color: transparent;
border-radius: 4px;
min-width: 50;
padding: 10px;
}
<div class="root">
<div class="container">
<chatBubble>This is a chat bubble</chatBubble>
<chatBubble>This is another chat bubble</chatBubble>
</div>
</div>