Botão Slide Right Com css
PRÓXIMO
Botão Slide Down Com css
ANTERIOR
Botão Slide Left Com css
Postado: 19 de outubro de 2021
Tempo de Leitura: < 1 Minuto
Neste artigo vamos fazer um botão com efeito slide Right com css
Vamos Adicionar o Html:
<a href="#" class="btn motion-btn right"> <span class="icon icon-hand-o-right"> Veja mais...</span> </a> <a href="#" class="btn motion-btn right"> <span class="icon icon-facebook"></span> </a> <a href="#" class="btn motion-btn right"> <span class="icon icon-twitter"></span> </a> <a href="#" class="btn motion-btn right"> <span class="icon icon-instagram"></span> </a> <a href="#" class="btn motion-btn right"> <span class="icon icon-pinterest"></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; } /*RIGHT*/ .motion-btn.right { color: #FD8402; cursor: pointer; display: block; position: relative; border: 2px solid #FD8402; border-radius:50px; transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1); 0s; } .motion-btn.right span { z-index:1; position:relative; } .motion-btn.right:hover { color:#fff!important; background-color: transparent; } .motion-btn.right:hover:before { left: 0%; right: auto; width: 100%; } .motion-btn.right:before { display: block; position: absolute; top: 0px; right: 0px; height: 100%; width: 0px; z-index: 1; content: ''; color: #000 !important; background: #FD8402; transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1); 0s; }
Veja o Resultado!
Deixe um comentário