Animation can make bell๐Ÿ”” much more than emoji!

Dharmen ShahDharmen Shah
1 min read

We all use wave ๐Ÿ”” emoji a lot in web apps!

Next time when you use it, try to add a simple wave animation to it...

@keyframes bell-keyframes {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.bell-animation {
  animation-duration: 1s;
  animation-iteration-count: var(--times, 1);
  animation-name: bell-keyframes;
  transform-origin: top center;
}

I have also created a codepen for it:

12
Subscribe to my newsletter

Read articles from Dharmen Shah directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Dharmen Shah
Dharmen Shah

I am a ๐Ÿ‘”๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Front-end Developer. I like to work on ๐Ÿ’ป Web stuff (HTML, CSS, JS), ๐Ÿ…ฐ๏ธ Angular, โš›๏ธ React, ๐Ÿ–Œ๏ธ Bootstrap. I also love ๐Ÿค— to contribute to ๐Ÿ‘ Open-Source Projects and sometime โœ’๏ธ write ๐Ÿ“œ articles.