Fill Button - CSS Hover Animation

Size
2,552 Kb
Views
16,192

How do I make an fill button - css hover animation?

On hover, it fills up from the bottom. Simple and beautiful. . What is a fill button - css hover animation? How do you make a fill button - css hover animation? This script and codes were developed by Andréas Lundgren on 01 December 2022, Thursday.

Fill Button - CSS Hover Animation Previews

Fill Button - CSS Hover Animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fill Button - CSS Hover Animation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <a href="#" class="btn">Hello World!</a> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Fill Button - CSS Hover Animation - Script Codes CSS Codes

*, *::before, *::after { box-sizing: border-box;
}
html, body { width: 100%; height: 100%;
}
html { font: normal 100%/1.5 "Open Sans", sans-serif;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; background-color: whitesmoke;
}
.btn { display: block; padding: 1rem; border: .0625rem solid transparent; border-radius: .25rem; background-color: white; color: gray; font-size: 2rem; font-weight: 300; letter-spacing: -0.0625rem; line-height: 1; text-decoration: none; text-shadow: 0 0 0 transparent; box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25); -webkit-transition-property: border-color, box-shadow, color, padding, text-shadow; transition-property: border-color, box-shadow, color, padding, text-shadow; -webkit-transition-duration: 250ms; transition-duration: 250ms;
}
.btn:focus, .btn:hover { border-color: #ff4d2e; color: white; text-shadow: 0.0625rem 0.0625rem 0 rgba(0, 0, 0, 0.5); box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.25), inset 0 -2em 0 tomato;
}
Fill Button - CSS Hover Animation - Script Codes
Fill Button - CSS Hover Animation - Script Codes
Home Page Home
Developer Andréas Lundgren
Username adevade
Uploaded December 01, 2022
Rating 3
Size 2,552 Kb
Views 16,192
Do you need developer help for Fill Button - CSS Hover Animation?

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!

Andréas Lundgren (adevade) Script Codes
Create amazing captions with AI!

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!