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,253 |
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 |
AngularJS - Controller As | 5,584 Kb |
Checkbox Style 2.0 - SCSS | 4,075 Kb |
Ng-circle | 3,355 Kb |
Material Design - Switch | 3,282 Kb |
SidebarJS | 3,666 Kb |
Ng-barcode | 2,888 Kb |
Smooth Scroll | 3,561 Kb |
NgEasyModal | 4,159 Kb |
Material Design - Animations | 9,001 Kb |
AngularJS template | 6,104 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 |
Kudos Please | TimPietrusky | 6,624 Kb |
A Pen by Bryan | Brydave | 2,286 Kb |
BlueBox Fork | Huskynation | 12,675 Kb |
GrcJS | Vino6 | 2,047 Kb |
FCC_Twitch.tv | MitchES | 3,466 Kb |
Zip Button test | Lje7462 | 1,932 Kb |
Fixed with using Calc | Tomleo | 2,542 Kb |
TweenMax transformOrigin Bubble | Nicolund | 2,209 Kb |
React TODO | Enieste | 3,320 Kb |
Javascript Welcome | Peterlewicki | 1,573 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!