Menu

gitpiper

Button shrink animation css Code Snippet in 2025

animationbeginner

Last Updated: 25 April 2025

Creates a shrink animation on hover.

  • Use an appropriate transition to animate changes to the element.
  • Use the :hover pseudo-class to change the transform to scale(0.8), shrinking the element when the user hovers over it.
<button class="button-shrink">Submit</button>
.button-shrink { 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-shrink:hover { transform: scale(0.8); }

css snippet similar to Button shrink animation For You in April 2025

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2025 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️