Reasonably Shadowed Button
How do I make an reasonably shadowed button?
What is a reasonably shadowed button? How do you make a reasonably shadowed button? This script and codes were developed by Kendrick Arnett on 11 August 2022, Thursday.
Reasonably Shadowed Button - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Reasonably Shadowed Button</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> <div class="container"> <h1>A more reasonably shadowed button</h1> <div> <button class="shadowed--secondary">Secondary Action</button> <button class="shadowed">Primary Action</button> </div>
</div>
</body>
</html>
Reasonably Shadowed Button - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600);
html { box-sizing: border-box;
}
*, *:before, *:after { box-sizing: inherit;
}
html { font-family: 'Avenir Next', 'Open Sans'; font-weight: 300;
}
html, body { height: 100%;
}
.container { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; height: 100%; width: 100%; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.shadowed--secondary,
.shadowed { border-radius: 2px; border: none; color: #fff; background: #1667a1; padding: 1rem; position: relative; margin: auto 0.25rem;
}
.shadowed--secondary:focus,
.shadowed:focus { outline: 0;
}
.shadowed--secondary:after,
.shadowed:after { height: 50%; width: 82%; background: transparent; content: ''; position: absolute; top: 50%; left: 9%; box-shadow: 0 0.2rem 1.5rem rgba(0, 0, 0, 0.4); z-index: -1; -webkit-transition: all 100ms ease; transition: all 100ms ease;
}
.shadowed--secondary:hover,
.shadowed:hover { background: #1a79be; -webkit-transition: all 100ms ease; transition: all 100ms ease;
}
.shadowed--secondary:hover:after,
.shadowed:hover:after { box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.4); -webkit-transition: all 100ms ease; transition: all 100ms ease;
}
.shadowed--secondary:active,
.shadowed:active { background: #145d91; -webkit-transition: all 100ms ease; transition: all 100ms ease;
}
.shadowed--secondary:active:after,
.shadowed:active:after { box-shadow: 0 0.05rem 1rem rgba(0, 0, 0, 0.4); -webkit-transition: all 100ms ease; transition: all 100ms ease;
}
.shadowed--secondary { background: #fff; border: 1px solid #1667a1; color: #1667a1;
}
.shadowed--secondary:hover { background: white; color: #1a79be; border-color: #1a79be;
}
.shadowed--secondary:active { background: #f2f2f2; color: #145d91; border-color: #145d91;
}
Developer | Kendrick Arnett |
Username | kendrick |
Uploaded | August 11, 2022 |
Rating | 3 |
Size | 2,847 Kb |
Views | 66,792 |
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 |
Variation Button Styles | 2,756 Kb |
Include-media Include | 10,238 Kb |
Pulse for Skeleton Screens | 2,233 Kb |
Media Queries via include-media | 7,667 Kb |
Duotone Fixed Backgrounds | 7,732 Kb |
Colors | 6,261 Kb |
Flexbox Resume Challenge | 10,625 Kb |
A Pen by Kendrick Arnett | 2,047 Kb |
Chunky Toggles | 2,821 Kb |
Lazy Image Loading via ScrollMagic | 4,812 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 |
Typefaces with descriptions | Megandoty | 2,944 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 Kb |
OnScreenAction | Ozgursagiroglu | 2,647 Kb |
Wikipedia viewer | Chpecson | 2,865 Kb |
Ipad Mini Showcase | Hornebom | 10,479 Kb |
Em Test | Rodesco | 1,784 Kb |
Portfolio Landing Page | FDfranklin | 3,585 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
FreeCodeCamp - Simon Game | Ivhed | 8,481 Kb |
Hard-Stop Gradients | Mackdoyle | 2,288 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!