FAB Button CSS
Pure css3 animation FAB
by dpnminh
HTML
<script src="//fonts.googleapis.com/icon?family=Material+Icons"></script>
<footer class="container">
<a href="#" class="buttons floating" tooltip="Email">
<i class="material-icons">email</i>
</a>
<a href="#" class="buttons floating" tooltip="Call">
<i class="material-icons">call</i>
</a>
<a href="#" class="buttons floating" tooltip="Track">
<i class="material-icons">watch</i>
</a>
<a class="buttons float-btn" tooltip="Add me" href="#">
<i class="material-icons">add</i>
</a>
</footer>
CSS
@import url(https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500);
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: local('Material Icons'), local('MaterialIcons-Regular'), url(https://fonts.gstatic.com/s/materialicons/v21/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
body {
overflow: hidden;
font-family: Roboto;
color: #fff;
}
.container {
bottom: 0;
position: fixed;
margin: 1em;
right: 0px;
}
.buttons {
box-shadow: 0px 5px 11px -2px rgba(0, 0, 0, 0.18), 0px 4px 12px -7px rgba(0, 0, 0, 0.15);
border-radius: 50%;
display: block;
width: 56px;
height: 56px;
margin: 20px auto 0;
position: relative;
-webkit-transition: all .1s ease-out;
transition: all .1s ease-out;
text-align: center;
color: white;
}
.float-btn .material-icons{
vertical-align: middle;
line-height: 2.3;
}
.floating .material-icons{
vertical-align: middle;
font-size: 20px;
line-height: 2;
}
.buttons:active,
.buttons:focus,
.buttons:hover {
box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28);
}
.buttons:not(:last-child) {
width: 40px;
height: 40px;
margin: 20px auto 0;
opacity: 0;
-webkit-transform: translateY(50px);
-ms-transform: translateY(50px);
transform: translateY(50px);
}
.container:hover .buttons:not(:last-child) {
opacity: 1;
-webkit-transform: none;
-ms-transform: none;
transform: none;
margin: 15px auto 0;
}
/* Unessential styling for sliding up buttons at differnt speeds */
.buttons:nth-last-child(1) {
-webkit-transition-delay: 25ms;
...