Botão Slide Up Com css
PRÓXIMO
Loading Três Pontinhos com Css
ANTERIOR
Botão Slide Down Com css
Postado: 17 de outubro de 2021
Tempo de Leitura: 2 Minutos
Neste artigo vamos fazer um botão com efeito slide Up com css
Vamos Adicionar o Html:
Observação: vocês podem usar o botão para Redes sociais também é só usar fonte de icones.
<a href="#" class="btn motion-btn up"> <span> Veja mais...</span> </a> <a href="#" class="btn motion-btn up"> <span class="icon icon-cube"> Saiba mais...</span> </a> <a href="#" class="btn motion-btn up"> <span class="icon icon-hand-o-up"> Leia mais...</span> </a> <a href="#" class="btn motion-btn up"> <span class="icon icon-facebook"></span> </a> <a href="#" class="btn motion-btn up"> <span class="icon icon-twitter"></span> </a> <a href="#" class="btn motion-btn up"> <span class="icon icon-instagram"></span> </a> <a href="#" class="btn motion-btn up"> <span class="icon icon-pinterest"></span> </a>
Vamos Adicionar o Css:
.btn { width:auto; float:left; font-family: 'open_sansregular'; 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; } /*UP*/ .motion-btn.up { color: #F05252; cursor: pointer; display: inline-block; position: relative; border:2px solid #F05252; border-radius:50px; transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s; } .motion-btn.up span { z-index:1; position:relative; } .motion-btn.up:hover { color: #ffffff !important; background-color: transparent; } .motion-btn.up:hover:before { bottom: 0%; top: auto; height: 100%; } .motion-btn.up:before { display: block; position: absolute; left: 0px; top: 0px; height: 0px; width: 100%; z-index: 1; content: ''; color: #000 !important; background: #F05252; transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) 0s; }
Veja o Resultado !
Deixe um comentário