Botão Css – Background Animado Bounce Right

Postado: 17 de dezembro de 2021

Botão Css – Background Animado Bounce Right

Neste Tutorial vamos criar um Botão Css com efeito background animado.

Vamos Adicionar o Html:

   <a href="#" class="btn background-bounce-right"><i class="icon icon-hand-o-right"></i> Saiba mais...</a>

Vamos Adicionar o Css:

.btn {
	  
	    padding: 0.7em 1.3em;
	    cursor: pointer;
	    background: linear-gradient(90deg, #03B5BD 0%, #00d4d9 100%);
	    text-decoration: none;
	    font-weight:bold;
	    font-size:1.1em; 
	    color: #fff;
	    border-radius:50px;
	    overflow:hidden; 
	    transition:0.3s; 
	}
	.btn:hover { transition:0.3s; }

	.background-bounce-right {
	  display: inline-block;
	  vertical-align: middle;
	  -webkit-transform: translateZ(0);
	  transform: translateZ(0);
	  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
	  -webkit-backface-visibility: hidden;
	  backface-visibility: hidden;
	  -moz-osx-font-smoothing: grayscale;
	  position: relative;
	  -webkit-transition-property: color;
	  transition-property: color;
	  -webkit-transition-duration: 0.5s;
	  transition-duration: 0.5s;
	}

	.background-bounce-right:before {
	  content: "";
	  position: absolute;
	  z-index: -1;
	  top: 0;
	  left: 0;
	  right: 0;
	  bottom: 0;
	  background: #4c4c4c;
	  border-radius:50px; 
	  -webkit-transform: scaleX(0);
	  transform: scaleX(0);
	  -webkit-transform-origin: 0 50%;
	  transform-origin: 0 50%;
	  -webkit-transition-property: transform;
	  transition-property: transform;
	  -webkit-transition-duration: 0.5s;
	  transition-duration: 0.5s;
	  -webkit-transition-timing-function: ease-out;
	  transition-timing-function: ease-out;
	}
	.background-bounce-right:hover, .background-bounce-right:focus, .background-bounce-right:active {
	  
	  color:#00d4d9;

	}

	.background-bounce-right:hover:before, .background-bounce-right:focus:before, .background-bounce-right:active:before {
	  -webkit-transform: scaleX(1);
	  transform: scaleX(1);
	  -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
	  transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
	}

Veja o Resultado !

Baixar Código Veja Funcionando

Publicado por: loopnerd

687 Visualizações

Deixe um comentário

O seu endereço de e-mail não será publicado.