Button grow animation

CSS, Animation · May 24, 2021

Creates a grow animation on hover.

  • Use an appropriate transition to animate changes to the element.
  • Use the :hover pseudo-class to change the transform to scale(1.1), growing the element when the user hovers over it.
<button class="button-grow">Submit</button>
.button-grow {
  color: #65b5f6;
  background-color: transparent;
  border: 1px solid #65b5f6;
  border-radius: 4px;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;

.button-grow:hover {
  transform: scale(1.1);

Written by Angelos Chalaris

I'm Angelos Chalaris, a JavaScript software engineer, based in Athens, Greece. The best snippets from my coding adventures are published here to help others learn to code.

If you want to keep in touch, follow me on GitHub or Twitter.

More like this