Color hover buttons

Developer
Size
2,840 Kb
Views
36,432

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 Previews

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"); });
});
Color hover buttons - Script Codes
Color hover buttons - Script Codes
Home Page Home
Developer Andrew Canham
Username candroo
Uploaded August 23, 2022
Rating 4.5
Size 2,840 Kb
Views 36,432
Do you need developer help for Color hover buttons?

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!

Andrew Canham (candroo) Script Codes
Create amazing SEO content 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!