Button hover
How do I make an button hover?
Button hover experimentation. What is a button hover? How do you make a button hover? This script and codes were developed by Anthony on 04 January 2023, Wednesday.
Button hover - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Button hover</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans:700,400'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <button class="button"> <span>Hello, Tonours !</span>
</button>
</body>
</html>
Button hover - Script Codes CSS Codes
body { background: #10A6D1; margin: 80px; font-family: 'Open Sans', sans-serif; text-align: center;
}
.button { padding: 10px 25px; border: 0; background: transparent; background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, #ffcf10 51%, #ffcf10 100%); background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, #ffcf10 51%, #ffcf10 100%); background-size: 200% 200%; position: relative; border: 1px solid #FFFFFF; outline: none; font-size: 14px; text-transform: uppercase; font-weight: 700; color: #FFFFFF; -webkit-transition: background-position .25s ease-in .3s; transition: background-position .25s ease-in .3s;
}
.button::before, .button::after { content: ''; height: 50%; width: 1px; background: #10A6D1; display: block; position: absolute; -webkit-transition: -webkit-transform 250ms linear 400ms; transition: -webkit-transform 250ms linear 400ms; transition: transform 250ms linear 400ms; transition: transform 250ms linear 400ms, -webkit-transform 250ms linear 400ms;
}
.button::before { bottom: 0; left: -1px;
}
.button::after { top: 0; right: -1px;
}
.button span { position: relative; overflow: hidden; -webkit-transition: color 0s linear 470ms; transition: color 0s linear 470ms;
}
.button span::after { content: 'Hello, Tonours !'; position: absolute; top: 0; left: 0; color: #ffcf10; display: block; -webkit-transform: translateY(100%); transform: translateY(100%); -webkit-transition: opacity 0s linear 425ms, -webkit-transform .2s linear .425s; transition: opacity 0s linear 425ms, -webkit-transform .2s linear .425s; transition: transform .2s linear .425s, opacity 0s linear 425ms; transition: transform .2s linear .425s, opacity 0s linear 425ms, -webkit-transform .2s linear .425s; opacity: 0;
}
.button:hover, .button:focus { background-position: 0% 200%; cursor: pointer;
}
.button:hover::before, .button:focus::before { -webkit-transform: translateY(105%); transform: translateY(105%);
}
.button:hover::after, .button:focus::after { -webkit-transform: translateY(-105%); transform: translateY(-105%);
}
.button:hover span, .button:focus span { color: #10A6D1;
}
.button:hover span::after, .button:focus span::after { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; -webkit-transition: opacity 0s linear 500ms, -webkit-transform .2s linear 0s; transition: opacity 0s linear 500ms, -webkit-transform .2s linear 0s; transition: transform .2s linear 0s, opacity 0s linear 500ms; transition: transform .2s linear 0s, opacity 0s linear 500ms, -webkit-transform .2s linear 0s;
}
Developer | Anthony |
Username | Tonours |
Uploaded | January 04, 2023 |
Rating | 3 |
Size | 2,867 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Svg animation test | 2,338 Kb |
Fail vibration | 2,008 Kb |
Bender edit profile | 4,818 Kb |
A Pen by Anthony | 7,238 Kb |
Remember MSN Wizz | 2,206 Kb |
Send button effect | 2,754 Kb |
Background Animation | 4,554 Kb |
SVG fill animation | 2,203 Kb |
Simple form input effect | 3,080 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Airbnb Homepage | SindhujaD | 2,480 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
Cartoon Bomb | Tcmulder | 4,929 Kb |
Splitted Layout | Hornebom | 2,162 Kb |
Cloudy Spiral CSS animation | Hakimel | 6,587 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
Kudos Please | TimPietrusky | 6,624 Kb |
Flying Bee | Pwsm50 | 3,711 Kb |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Get third wednesday | Wojtek1150 | 2,691 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!