<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
* {
font-family: Arial;
}
.move {
position: relative;
display:inline-block;
border:2px solid #a0d11e;
padding: 10px 30px;
overflow: hidden;
text-decoration: none;
width:200px;
}
.move:link, .move:visited {
color: #a0d11e;
}
.move:hover {
color: white;
}
.move:after {
content: " ";
position:absolute;
background-color: #a0d11e;
transition: all 0.15s;
z-index: -1;
}
.moveRight {
text-align: right;
}
.moveRight:after {
top:0;
left:0;
height:100%;
width:0;
}
.moveRight:before {
content:'»';
position:absolute;
right:10px;
font-size: 24px;
top:4px;
}
.moveRight:hover:after {
transition: all 0.15s;
width:100%;
}
.moveLeft:after {
top:0;
left:100%;
height:100%;
width:100%;
}
.moveLeft:before {
content:'«';
position:absolute;
left:10px;
font-size: 24px;
top:4px;
}
.moveLeft:hover:after {
transition: all 0.15s;
left:0;
}
</style>
</head>
<body>
<a href="https://www.pagina.com/anterior.html" class='move moveLeft'>
Anterior
</a>
<a href="https://www.pagina.com/siguiente.html" class='move moveRight'>
Siguiente
</a>
</body>
</html>
Comentarios sobre la versión: 1 (0)
No hay comentarios