Ionita Cristian-Valentin Ionita Cristian-Valentin - 3 months ago 19x
CSS Question

HTML5/CSS Material ripple background transition

I have found this fiddle
but the animation works only if I click and hold.
Would it be possible to make the animation to load when the page loads.
Just want some background load in animation similar to android lollipop ripple/firefox os for tv also uses similar.


You can use CSS3 animation for the transition to start automatically.

Learn more about animation here:


Updated fiddle: Fiddle


#parent {
  height: 200px;
  width: 400px;
  background-color: lightgray;
#circle {
  background-image: url("");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 0 0;
  height: 200px;
  width: 400px;
  /*transition: .3s ease-in;*/
  animation: example 1s ease-in infinite;
@keyframes example {
  0% {
    background-size: 0px 0px;
  50% {
    background-size: 600px 600px;
  100% {
    background-size: 0px 0px;
<div id="parent">
  <div id="circle"></div>