Material Design - Button in pure CSS
How do I make an material design - button in pure css?
Material Design - Button in pure CSS No javascript inside!. What is a material design - button in pure css? How do you make a material design - button in pure css? This script and codes were developed by Lorenzo D'Ianni on 29 September 2022, Thursday.
Material Design - Button in pure CSS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Material Design - Button in pure CSS</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Material Design<br>Button in pure CSS<small>Click it!</small></h1>
<div class="button"> <input type="checkbox" id="your-id" class="button-checkbox"> <label class="button-trigger" for="your-id"><i class="material-icons">add</i></label> <div class="button-option"><i class="material-icons">favorite</i></div> <div class="button-option"><i class="material-icons">face</i></div> <div class="button-option"><i class="material-icons">whatshot</i></div>
</div>
</body>
</html>
Material Design - Button in pure CSS - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500);
@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline;
}
html { line-height: 1;
}
ol, ul { list-style: none;
}
table { border-collapse: collapse; border-spacing: 0;
}
caption, th, td { text-align: left; font-weight: normal; vertical-align: middle;
}
q, blockquote { quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none;
}
a img { border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block;
}
h1, .button .material-icons, .button-option { position: absolute; top: 50%; left: 50%; -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
}
*, *:before, *:after { margin: 0; padding: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -moz-user-select: -moz-none; -ms-user-select: none; -webkit-user-select: none; user-select: none;
}
h1 { padding: 0 16px; font-family: 'Roboto', sans-serif; font-size: 24px; text-align: center; line-height: 140%; color: rgba(0, 0, 0, 0.54);
}
h1 small { display: block; font-size: 16px;
}
.button { position: absolute; bottom: 10%; right: 10%; width: 56px; height: 56px;
}
.button-checkbox { display: none;
}
.button-trigger { display: block; width: 100%; height: 100%; cursor: pointer; background-color: #2196F3; -moz-transition: all 0.34s ease-in-out; -o-transition: all 0.34s ease-in-out; -webkit-transition: all 0.34s ease-in-out; transition: all 0.34s ease-in-out; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; -moz-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084); -webkit-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084); box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
}
.button .material-icons { z-index: 5; color: #ffffff; -moz-transform: translate(-50%, -50%) rotate(0); -ms-transform: translate(-50%, -50%) rotate(0); -webkit-transform: translate(-50%, -50%) rotate(0); transform: translate(-50%, -50%) rotate(0); -moz-transition: all 0.34s ease-in-out; -o-transition: all 0.34s ease-in-out; -webkit-transition: all 0.34s ease-in-out; transition: all 0.34s ease-in-out;
}
.button-option { z-index: -1; width: 80%; height: 80%; cursor: pointer; background-color: #ffffff; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; -moz-transition: all 0.34s ease-in-out; -o-transition: all 0.34s ease-in-out; -webkit-transition: all 0.34s ease-in-out; transition: all 0.34s ease-in-out; -moz-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084); -webkit-box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084); box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
}
.button-option:hover { background-color: #2196F3;
}
.button-option:hover .material-icons { color: #ffffff;
}
.button-option:active { background-color: #1976D2;
}
.button-option .material-icons { color: rgba(0, 0, 0, 0.54); -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; -webkit-transition: all 0.3s ease; transition: all 0.3s ease;
}
.button-checkbox:checked ~ .button-trigger > .material-icons { -moz-transform: translate(-50%, -50%) rotate(225deg); -ms-transform: translate(-50%, -50%) rotate(225deg); -webkit-transform: translate(-50%, -50%) rotate(225deg); transform: translate(-50%, -50%) rotate(225deg);
}
.button-checkbox:checked ~ .button-option:nth-of-type(1) { -moz-transform: translate(-50%, -440%); -ms-transform: translate(-50%, -440%); -webkit-transform: translate(-50%, -440%); transform: translate(-50%, -440%);
}
.button-checkbox:checked ~ .button-option:nth-of-type(2) { -moz-transform: translate(-50%, -320%); -ms-transform: translate(-50%, -320%); -webkit-transform: translate(-50%, -320%); transform: translate(-50%, -320%);
}
.button-checkbox:checked ~ .button-option:nth-of-type(3) { -moz-transform: translate(-50%, -200%); -ms-transform: translate(-50%, -200%); -webkit-transform: translate(-50%, -200%); transform: translate(-50%, -200%);
}
Developer | Lorenzo D'Ianni |
Username | lorenzodianni |
Uploaded | September 29, 2022 |
Rating | 3.5 |
Size | 3,923 Kb |
Views | 22,264 |
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 |
NgEasyModal | 4,159 Kb |
SidebarJS | 3,666 Kb |
Ng-barcode | 2,888 Kb |
AngularJS - Controller As | 5,584 Kb |
Material Design - Switch | 3,282 Kb |
Ng-circle | 3,355 Kb |
Cards experience | 10,660 Kb |
AngularJS template | 6,104 Kb |
Off Canvas in SASS | 5,680 Kb |
Checkbox Style - SCSS | 5,095 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 |
Filtre ile Arama Kutusu - Search Box with Filter | AyhanALTINOK | 3,448 Kb |
Two tables and header with jspdf-autotable | Someatoms | 2,245 Kb |
A Bouncy Menu Toggle | Billyysea | 4,563 Kb |
CSSOff 2013 Submission | Codewunder | 14,766 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
A Pen by Taylor Vowell | Taylorvowell | 5,962 Kb |
Tooltip in table | Roine | 3,713 Kb |
Scarlett Johansson Tribute Page | Diomed | 3,233 Kb |
This in constructor context | _shree33 | 1,718 Kb |
ASCII triangle image overlay | Mitchdot | 2,200 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!