Botão Slide Down Com css

Postado: 18 de outubro de 2021

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

Vamos Adicionar o Html:

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

Vamos Adiconar 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;

}


/*DOWN*/
.motion-btn.down {
	color: #20B3D5;
	cursor: pointer;
	display: block;
	position: relative;
	border: 2px solid #20B3D5;
	border-radius:50px;
	transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

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

.motion-btn.down:hover {
	color: #fff !important;
	background-color: transparent;
	text-shadow: ntwo;
}

.motion-btn.down:hover:before {
	top: 0%;
	bottom: auto;
	height: 100%;
}

.motion-btn.down:before {
	display: block;
	position: absolute;
	left: 0px;
	bottom: 0px;
	height: 0px;
	width: 100%;
	z-index: 1;
	content: '';
	background: #20B3D5;
	transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

Veja o Resultado !

Baixar Código Veja Funcionando

Publicado por: loopnerd

542 Visualizações

Deixe um comentário

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