Botão Slide Left Com css

Postado: 20 de outubro de 2021

Botão Slide Left Com css

Neste artigo vamos fazer um botão com efeito slide Lefet com css

Vamos Adicionar o Html:

<a href="#" class="btn motion-btn lefet"> <span class="icon icon-twitter"></span> </a>                
<a href="#" class="btn motion-btn lefet"> <span class="icon icon-facebook"></span> </a>
<a href="#" class="btn motion-btn lefet"> <span class="icon icon-hand-o-left"> Leia mais...</span> </a>

Vamos Adicionar o Css

.btn { 
	width:auto; 
	float:left;
	margin-right:10px; 
}

.motion-btn:link, .motion-btn:visited {
	position: relative;
	display: block;
	padding: 0.8em 1em;
	font-size:0.9em;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	overflow: hidden;
	border-radius: 0;
	-webkit-transition: all 1s ease;
	-moz-transition: all 1s ease;
	-o-transition: all 1s ease;
	transition: all 1s ease;
}

.motion-btn:link:after, .motion-btn:visited:after {
	
	content: "";
	position: absolute;
	height: 0%;
	left: 50%;
	top: 50%;
	width: 150%;
	z-index: -1;
	-webkit-transition: all 0.75s ease 0s;
	-moz-transition: all 0.75s ease 0s;
	-o-transition: all 0.75s ease 0s;
	transition: all 0.75s ease 0s;
}

.motion-btn:link:hover:after, .motion-btn:visited:hover:after {
	
	height: 460%;
}

.motion-btn:link, .motion-btn:visited {
	
	position: relative;
	display: block;
	padding: 0.8em 0.9em;
	font-size:0.9em;
	border-radius: 0;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	overflow: hidden;
	letter-spacing:2px;
	-webkit-transition: all 1s ease;
	-moz-transition: all 1s ease;
	-o-transition: all 1s ease;
	transition: all 1s ease;
}

/*LEFET*/
.motion-btn.lefet {
	
	color: #78DB00;
	cursor: pointer;
	display: block;
	position: relative;
	border: 2px solid #78DB00;
	border-radius:50px; 
	transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    0s;

}

.motion-btn.lefet span { 
    
    z-index:1;
    position:relative; 

}

.motion-btn.lefet:hover {
	
	color: #ffffff!important;
	background-color: transparent;

}

.motion-btn.lefet:hover:before {

	right: 0%;
	left: auto;
	width: 100%;

}

.motion-btn.lefet:before {

	display: block;
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 0px;
	z-index: 1;
	content: '';
	color: #000 !important;
	background: #78DB00;
	transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);  
    0s;
}

Veja o Resultado!

Baixar Código Veja Funcionando

Publicado por: loopnerd

397 Visualizações

Deixe um comentário

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