Color hover buttons
How do I make an color hover buttons?
Just playing with some hover effects for buttons bleeding through to the background. What is a color hover buttons? How do you make a color hover buttons? This script and codes were developed by Andrew Canham on 23 August 2022, Tuesday.
Color hover buttons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Color hover buttons</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="buttons"> <a href="#">Orange</a> <a href="#">Blue</a> <a href="#">Green</a> <a href="#">White</a>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Color hover buttons - Script Codes CSS Codes
body { background: #dce1df; -webkit-transition: all 0.15s ease-in; transition: all 0.15s ease-in;
}
div.buttons { position: absolute; top: 50%; -webkit-transform: translate3d(0, -50%, 0); transform: translate3d(0, -50%, 0); text-align: center; width: 100%;
}
a { border: 1px solid #586660; border-radius: 2px; color: #586660; display: inline-block; font-family: arial; font-size: 12px; margin: 4px 2px; padding: 6px 18px; text-decoration: none; text-transform: uppercase; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-transition: all 0.15s ease-in; transition: all 0.15s ease-in;
}
a:hover { border: 1px solid rgba(0, 0, 0, 0); box-shadow: 0 4px 8px #acacac; color: #6f827a; -webkit-transform: translate3d(0, -4px, 0); transform: translate3d(0, -4px, 0);
}
body.orange { background: #ffad58;
}
body.orange a { border: 1px solid #582d00; color: #582d00;
}
body.orange a:hover { border: 1px solid rgba(0, 0, 0, 0); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 4px 8px #d97a18; color: #8b4700;
}
body.blue { background: #49f3ff;
}
body.blue a { border: 1px solid #004449; color: #004449;
}
body.blue a:hover { border: 1px solid rgba(0, 0, 0, 0); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 4px 8px #17bfcb; color: #00747c;
}
body.green { background: #91ffc2;
}
body.green a { border: 1px solid #009141; color: #009141;
}
body.green a:hover { border: 1px solid rgba(0, 0, 0, 0); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 4px 8px #40ea8c; color: #00c457;
}
body.white { background: #fff;
}
body.white a { border: 1px solid #808080; color: #808080;
}
body.white a:hover { border: 1px solid rgba(0, 0, 0, 0); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 4px 8px #cccccc; color: #999999;
}
Color hover buttons - Script Codes JS Codes
$(document).ready(function(){ var bodyElement = $("body"); $("a").eq(0).hover(function(){ bodyElement.addClass("orange"); }, function(){ bodyElement.removeClass("orange"); }); $("a").eq(1).hover(function(){ bodyElement.addClass("blue"); }, function(){ bodyElement.removeClass("blue"); }); $("a").eq(2).hover(function(){ bodyElement.addClass("green"); }, function(){ bodyElement.removeClass("green"); }); $("a").eq(3).hover(function(){ bodyElement.addClass("white"); }, function(){ bodyElement.removeClass("white"); });
});
Developer | Andrew Canham |
Username | candroo |
Uploaded | August 23, 2022 |
Rating | 4.5 |
Size | 2,840 Kb |
Views | 36,432 |
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 |
3D Fold out reveal | 4,535 Kb |
3D cube - hover rotate | 2,980 Kb |
Faux 3D grid with image reveal | 2,667 Kb |
Hover effect | 2,719 Kb |
Hover flower | 2,952 Kb |
Cube grid | 2,943 Kb |
Spread cards | 4,442 Kb |
Motivational message | 4,007 Kb |
Social media footer | 5,281 Kb |
Faux 3D grid | 2,284 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 |
Right Click Menu | Anodpixels | 2,252 Kb |
Mapbox Directions with geolocation tracking | Pollardld | 5,827 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
Bootstrap Responsive Menu Drawer | JesseGlacken | 3,777 Kb |
CSS Dynamic Width Square Div | Elleestcrimi | 2,861 Kb |
Resume | Rottingroom | 5,483 Kb |
Fullscreen Parallax | Bassta | 3,313 Kb |
Filtering with shuffle.js | Deyand | 2,712 Kb |
Ionic - Wordpress REST API starter | Superpikar | 2,961 Kb |
Dice | Fraina | 5,026 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!