Skip to content

Instantly share code, notes, and snippets.

@wrapcoders
Created January 3, 2022 14:05
Show Gist options
  • Save wrapcoders/d60092d7a0e174db52b0d2f026383ad7 to your computer and use it in GitHub Desktop.
Save wrapcoders/d60092d7a0e174db52b0d2f026383ad7 to your computer and use it in GitHub Desktop.
Animated Ripples background
.ripple-background
.circle.xxlarge.shade1
.circle.xlarge.shade2
.circle.large.shade3
.circle.mediun.shade4
.circle.small.shade5
body{
background: #3399ff;
}
.circle{
position: absolute;
border-radius: 50%;
background: white;
animation: ripple 15s infinite;
box-shadow: 0px 0px 1px 0px #508fb9;
}
.small{
width: 200px;
height: 200px;
left: -100px;
bottom: -100px;
}
.medium{
width: 400px;
height: 400px;
left: -200px;
bottom: -200px;
}
.large{
width: 600px;
height: 600px;
left: -300px;
bottom: -300px;
}
.xlarge{
width: 800px;
height: 800px;
left: -400px;
bottom: -400px;
}
.xxlarge{
width: 1000px;
height: 1000px;
left: -500px;
bottom: -500px;
}
.shade1{
opacity: 0.2;
}
.shade2{
opacity: 0.5;
}
.shade3{
opacity: 0.7;
}
.shade4{
opacity: 0.8;
}
.shade5{
opacity: 0.9;
}
@keyframes ripple{
0%{
transform: scale(0.8);
}
50%{
transform: scale(1.2);
}
100%{
transform: scale(0.8);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment