Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Animacion | Boton</title>
- <link rel="icon" type="image/png" href="https://i.imgur.com/zAT8QKV.png">
- </head>
- <style type="text/css">
- body {
- background: url(https://i.imgur.com/M5VtdDy.jpg);
- background-repeat: no-repeat;
- background-size: cover;
- }
- .titulo{
- text-align: center;
- font-size: 30px;
- background: #1083BD;
- padding: 15px;
- color: white;
- border-radius: 20px;
- }
- .button{
- display: inline-block;
- border-radius: 4px;
- background-color: #1083BD;
- border: none;
- color: #FFFFFF;
- text-align: center;
- font-size: 28px;
- padding: 20px;
- width: 200px;
- transition: all 1s;
- cursor: pointer;
- margin: 5px;
- }
- .button span{
- cursor: pointer;
- display: inline-block;
- position: relative;
- transition: 1s;
- }
- .button span:after{
- content: '\00BB';
- color: white;
- position: absolute;
- opacity: 0;
- top: 0;
- right: -20px;
- transition: 1s;
- }
- .button:hover span{
- padding-right: 25px;
- }
- .button:hover span:after{
- opacity: 1;
- right: 0;
- }
- </style>
- <body>
- <button class="button" style="vertical-align: middle;"><span>BOTON </span></button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement