Easily create an animated glow

17,636

You can use css animation. Here is an example using a vanilla div container, but you can give it a background image:

div {
  width: 200px;
  height: 200px;
  border-radius: 100px;
  background-color: #ccc;
  animation: glow 1s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px -10px #aef4af;
  }
  to {
    box-shadow: 0 0 10px 10px #aef4af;
  }
}
<div></div>

Share:
17,636
Admin
Author by

Admin

Updated on June 06, 2022

Comments

  • Admin
    Admin about 2 years

    I created this image:

    Using photoshop, but I had to make around 50 layers manually, and then create a gif out of it. Is there any easier way to automatically create an animated glow similar to this?