Is css button animation with code

 Solid Colored Button with Hover Effect:

<button class="btnvm1">Button vm1</button>

<style> 

.btnvm1 {

  background-color: #4caf50;

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

  transition: background-color 0.3s ease;

}

.btnvm1:hover {

  background-color: #3e8e41;

}

</style>

 Gradient Colored Button with Hover Effect:

<button class="btnvm2">Button vm1</button>

<style>

.btnvm2 {

  background-image: linear-gradient(to right, #ffafbd 0%, #ffc3a0 51%, #ffafbd 100%);

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

  transition: background-color 0.3s ease;

}

.btnvm2:hover {

  background-image: linear-gradient(to right, #a18cd1 0%, #fbc2eb 100%);

}



  </style>

 Button with Rounded Corners:

.btnvm3 {

  background-color: #4CAF50;

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

  border-radius: 20px;

}


 Button with Border:

.btnvm4 {

  background-color: #4CAF50;

  border: 2px solid #008CBA;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

}


 Button with Shadow:

.btnvm5 {

  background-color: #4CAF50;

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);

}


 Button with Icon:

.btnvm6 {

  background-color: #4CAF50;

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

}

.btnvm6 i {

  margin-right: 10px;

}


 Button with Gradient Border:

.btnvm7 {

  background-color: #4CAF50;

  border: 2px solid;

  border-image: linear-gradient(to right, #ffafbd 0%, #ffc3a0 51%, #ffafbd 100%);

  border-image-slice: 1;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

font-size: 16px;

margin: 4px 2px;

cursor: pointer;

}


 Button with Text Shadow:

.btnvm8 {

  background-color: #4CAF50;

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

  text-shadow: 2px 2px 4px #000000;

}


 Button with Hover and Active Effects:

.btnvm9 {

  background-color: #4CAF50;

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

  transition-duration: 0.4s;

  transition-property: transform;

}

.btnvm9:hover {

  background-color: #3e8e41;

  transform: scale(1.1);

}

.btnvm9:active {

  background-color: #3e8e41;

  transform: scale(0.9);

}


 Button with Circular Shape:

.btnvm10 {

  background-color: #4CAF50;

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

  border-radius: 50%;

  width: 100px;

  height: 100px;

}

.btnvm10 i {

  line-height: 100px;

}


92 Button styles in css 🥰

button 01

<button class="button-1" role="button">Button 1</button>

.button-1 {

  background-color: #EA4C89;

  border-radius: 8px;

  border-style: none;

  box-sizing: border-box;

  color: #FFFFFF;

  cursor: pointer;

  display: inline-block;

  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-size: 14px;

  font-weight: 500;

  height: 40px;

  line-height: 20px;

  list-style: none;

  margin: 0;

  outline: none;

  padding: 10px 16px;

  position: relative;

  text-align: center;

  text-decoration: none;

  transition: color 100ms;

  vertical-align: baseline;

  user-select: none;

  -webkit-user-select: none;

  touch-action: manipulation;

}

.button-1:hover,

.button-1:focus {

  background-color: #F082AC;

}


Demo...

coming soon...

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.