[FAB] Material Design Style Radial Floating Action Button Menu With Pure CSS

CSS Only Fab Icon Menu is the FAB (Floating Action Button) menu inspired by the material design that emerges a set of menu elements around the trigger button. Without the need for javascript and any third frameworks.

material design fab, android floating action button menu, floating action button flutter, extendedfloatingactionbutton, floating action button example

How to make use of it:

1. Create the floating action buttons with the trigger button on the web page.

<input id="triggerButton" class="triggerButton" type="checkbox">
<label for="triggerButton"></label>
<div class="one">Menu 1</div>
<div class="two">Menu 2</div>
<div class="three">Menu 3</div>

2. The main CSS for the trigger button.

.triggerButton { display: none; }
.triggerButton + label {
  cursor: pointer;
  position: absolute;
  right: 1em;
  bottom: 1em;
  background-color: tomato;
  height: var(--l);
  width: var(--l);
  border-radius: 50%;
  z-index: 2;
.triggerButton + label:before, .triggerButton + label:after {
  position: absolute;
  content: '';
  height: calc(var(--l) / 2 );
  width: .25em;
  background-color: #fff;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  border-radius: .5em;
  transition: all .25s;
.triggerButton + label:before {
  height: calc(var(--l) / 2 );
  width: .25em;
.triggerButton + label:after {
  width: calc(var(--l) / 2 );
  height: .25em;
.triggerButton:checked + label:before { transform: rotatez(-45deg); }
.triggerButton:checked + label:after { transform: rotatez(-45deg); }

3. CSS for menu elements.

.one, .two, .three {
  cursor: pointer;
  position: absolute;
  right: 1em;
  bottom: 1em;
  padding: 1em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  transform: rotateZ(90deg);
  font-size: 1em;
  color: #fff;
  transition-property: all;
  transition-duration: .35s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
.triggerButton:checked ~ .one, .triggerButton:checked ~ .two, .triggerButton:checked ~ .three { opacity: 1; }
.triggerButton:checked ~ .one {
  background-color: purple;
  transform: translateX(-5em);
  transition-delay: .2s;
.triggerButton:checked ~ .two {
  background-color: slateblue;
  transform: translateX(-3.5em) translateY(-3.5em);
  transition-delay: .1s;
.triggerButton:checked ~ .three {
  background-color: mediumorchid;
  transform: translateY(-5em);
.triggerButton:checked ~.one:hover, .triggerButton:checked ~ .two:hover, .triggerButton:checked ~ .three:hover { opacity: .9; }

material design style radial fab menu, css only fab icon menu Plugin/Github

See Demo And Download

Official Website(dhanishgajjar): Click Here

This superior jQuery/javascript plugin is developed by dhanishgajjar. For extra advanced usage, please go to the official website.

Related Posts


Responsive Drag and Drop File Uploader/Download Plugin | 5x5_jq_uploader

5x5_jq_uploader plugin can be used to instantly create a drop file area and file queue with a little bit of preparation. Bootstrap is used for responsive planning…


Stylesheet For Implementing Dark Mode with Bootstrap

Bootstrap Dark Mode provides a style sheet and two texts that allow you to implement Dark Mode on your website. Initially loaded based on user preferences, can…


Multi-purpose Navigation Menu for Javascript Library | jQuery Corenav

coreNavigation is a multipurpose navigation menu for a jquery based javascript library, comes with more style, and is easy to integrate. 11 Default Menu 2 Responsive Navigation…


Simple Multi-Select Dropdown Pure Vanilla Javascript | multiSelect.js

MultiSelect.js is a simple, clean, and progressive JavaScript library designed for easy integration with any type of project or system. The design was heavily influenced by the…


Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…


How To Create A Popup in HTML with CSS

How to create popup in html with css – Popup without JavaScript is an elegant pop-up panel component with an animated scale, written in CSS. Have you…