Reasonably Shadowed Button

Size
2,847 Kb
Views
66,792

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 Previews

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;
}
Reasonably Shadowed Button - Script Codes
Reasonably Shadowed Button - Script Codes
Home Page Home
Developer Kendrick Arnett
Username kendrick
Uploaded August 11, 2022
Rating 3
Size 2,847 Kb
Views 66,792
Do you need developer help for Reasonably Shadowed Button?

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!

Kendrick Arnett (kendrick) Script Codes
Create amazing love letters 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!