Realistic Buttons
How do I make an realistic buttons?
Simple, large Call To Action buttons with shadows and borders that react to hovering and being clicked on in a semi realistic fashion.. What is a realistic buttons? How do you make a realistic buttons? This script and codes were developed by Chris Steurer on 08 December 2022, Thursday.
Realistic Buttons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Realistic Buttons</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <button href="" class="linkButton circle">Shop For <span>THIS</span></button>
<button href="" class="linkButton">Shop For <span>THAT</span></button>
<button href="" class="linkButton roundCorners">Shop For <span>THIS TOO</span></button> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Realistic Buttons - Script Codes CSS Codes
/* General Styles (Not Needed) */
body { background:linear-gradient(0deg,#333,#555); padding:10% 0; min-width:350px;
}
section { display:block; clear:both; margin:40px 0;
}
/* ///////////////////////////////////////////// // Button Style \\
///////////////////////////////////////////// */
button.linkButton { background:#efefef; /* Controls the "width" of the button (not really, but kinda) */ padding:18px 80px; border:none; border-bottom: solid 7px #C5C5C5; margin: 40px auto; display: block; box-shadow:0 7px 10px rgba(0,0,0,0.8); /* This is terrible for usability, but it sure looks prettier! */ outline:none;
}
button.linkButton.circle { border-radius:100%; /* Adjust the padding to keep it circular depending on the amount of text you have */ padding:60px 50px;
}
button.linkButton.roundCorners { border-radius:20px;
}
button.linkButton:hover { cursor:pointer; /* Add an extra border at the top that matches the button background color in order to fake the "shrinking" effect */ border-top:solid 2px #efefef; /* Reduce the border at the bottom in order to fake the "skrinking effect" */ border-bottom: solid 5px #D1D1D1; box-shadow:0 5px 10px rgba(0,0,0,0.6); /* Use padding to prevent text from moving with button padding:16px 80px 20px;*/
}
button.linkButton:active { /* Add an extra border at the top that matches the button background color in order to fake the "shrinking" effect */ border-top:solid 7px #efefef;/* Reduce the border at the bottom in order to fake the "skrinking effect" */ border-bottom:none; box-shadow:0 1px 1px rgba(0,0,0,0.4); /* Use padding to prevent text from moving with button padding:11px 80px 25px; */
}
/* Typography */
button.linkButton { text-align:center; color:#666; line-height:1.8em;
}
button.linkButton span { color:#222; display:block; font-size:2.5em; font-weight:700;
}
Developer | Chris Steurer |
Username | stoypenny |
Uploaded | December 08, 2022 |
Rating | 3 |
Size | 2,248 Kb |
Views | 54,648 |
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 |
Delayed Modal Popup | 4,480 Kb |
Button With Image Zoom On Hover | 3,642 Kb |
Analytics Data | 5,746 Kb |
Simple jQuery Text Spoiler Reveal | 1,913 Kb |
Arrow Button Hover Effect | 2,963 Kb |
Simple Table Search | 2,016 Kb |
Remove Empty WooCommerce Filters | 2,583 Kb |
Button Hover Effects | 1,993 Kb |
Sign Up Form with live validation | 3,712 Kb |
Social Icon Buttons | 3,362 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 |
The CodePen Logo | Kindofone | 4,259 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
The Fly | GianlucaGuarini | 3,405 Kb |
A Pen by Oliver Schafeld | Schafeld | 1,720 Kb |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
Comment Jquery | SquishyAndroid | 2,421 Kb |
A Pen by Patrick Cox | Pcridesagain | 2,899 Kb |
Two joint circles - One element | Berdejitendra | 1,704 Kb |
A Pen by Jonas Bjork | Jonasbjork | 3,115 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!