Botão Css – Background Animado Bounce Down

Postado: 18 de dezembro de 2021

Botão Css – Background Animado Bounce Down

Neste Tutorial vamos criar um Botão Css com efeito Background Animado Bounce Down.

Vamos Adicionar o Html:

  <a href="#" class="btn background-bounce-bottom"><i class="icon icon-magnifying-glass"></i> Saiba mais...</a>

Vamos Adicionar o Css:

	.btn {
	  
	    padding: 0.7em 1.3em;
	    cursor: pointer;
	    background-color:#202020;
	    color: #ffe300;
	    text-decoration: none;
	    font-weight:bold;
	    font-size:1.1em; 
	    transition:0.3s; 
	}

	.btn:hover { transition:0.3s; }

	.background-bounce-bottom {
	  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-bottom:before {
	  content: "";
	  position: absolute;
	  z-index: -1;
	  top: 0;
	  left: 0;
	  right: 0;
	  bottom: 0;
	  background: #ffe300;
	  -webkit-transform: scaleY(0);
	  transform: scaleY(0);
	  -webkit-transform-origin: 50% 0;
	  transform-origin: 50% 0;
	  -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-bottom:hover, .background-bounce-bottom:focus, .background-bounce-bottom:active {
	
	  color:#202020;
	
	}

	.background-bounce-bottom:hover:before, .background-bounce-bottom:focus:before, .background-bounce-bottom:active:before {
	  -webkit-transform: scaleY(1);
	  transform: scaleY(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

786 Visualizações

Deixe um comentário

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