<div class="bottom-container">
Hello, there!
</div>
<div class="top-container">
Hello, there!
</div>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
font-family: 'Nunito', 'sans-serif';
font-size: 5vw;
}
.bottom-container,
.top-container {
width: 40vw;
height: 35vh;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 35vh;
left: 30vw;
padding: 1vw;
}
.bottom-container {
color: #232323;
}
.top-container {
background-color: red;
color: white;
clip-path: circle(13% at 85% 50%);
animation: circleMove 100s ease-in-out infinite;
}
@keyframes circleMove {
0%, 100% {
clip-path: circle(13% at 85% 50%);
}
50% {
clip-path: circle(13% at 15% 50%);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.