Are you looking for unique and stylish floating action buttons? Stop; no need to look elsewhere. In this collection, we are demonstrating 16+ HTML and CSS floating action button code examples that instantly draw the user’s attention.

We’ve gathered these float button examples from authentic platforms like Codepen, GitHub, and various other sources, perfect for web designers and web developers. In the ever-evolving realm of web design, floating buttons play a major role in initiating actions like “Add,” “Chat,” and “Share.”.

We have a wide array of free floating buttons that give you never-ending customisation options to improve the website’s interactivity. From simple floating buttons to interactive, animated buttons, these modern FAB examples will enhance usability and design aesthetics on any site. Whether you’re looking to add these items to a portfolio site, a blog website, or an eCommerce site, these floating buttons ensure focus, clarity, minimalism, user engagement, and responsiveness.

Find out an inspiring collection of hand-picked CSS Floating Action Buttons and make your web project stand out.

1. Action Button with Checkbox Trick (NO JS)


Author: BrainUP
Source:  Code / Demo
Created on: AUGUST 12, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(Less)

2. Action Button (Only CSS)


Author: Anna_Batura
Source:  Code / Demo
Created on: AUGUST 06, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Slim), CSS(Sass)

3. Multi Share Button in Pure CSS


Author: Bryce Snyder
Source:  Code / Demo
Created on: JUNE 04, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(Less)

4. Material Share Interaction


Author: Bhakti Pasaribu
Source:  Code / Demo
Created on: MARCH 07, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(SCSS), JavaScript(CoffeeScript)

5. Materialize FAB Button Spin-Close Menu Variation


Author: Sean Wu
Source:  Code / Demo
Created on: OCTOBER 31, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

6. Add Button


Author: Mert Cukuren
Source:  Code / Demo
Created on: SEPTEMBER 21, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

7. Floating Action Button


Author: João Fernandes
Source:  Code / Demo
Created on: DECEMBER 21, 2016
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML(Pug), CSS(Sass), JavaScript(Babel)

8. Pure CSS Floating Action Button


Author: Jones Joseph
Source:  Code / Demo
Created on: APRIL 05, 2019
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

9. Pure CSS Floating Button group


Author: Shubham Kr Jha
Source: Code / Demo
Created on: JUNE 8, 2021
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

10. FAB – Floating action button


Author: Timothy Long
Source: Code / Demo
Created on: JUNE 3, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript

11. Material Floating Button CSS


Author: Simone Bernabè
Source:  Code / Demo
Created on: JULY 16, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS (SCSS)

12. Floating Animation


Author: Chouaib Belagoun
Source:  Code / Demo
Created on: AUGUST 01, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS, JavaScript

13. FAB – Floating Action Button – CSS with bootstrap


Author: florent
Source:  Code / Demo
Created on: JULY 27, 2020
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

14. Floating Action Button


Author: Sasha
Source:  Code / Demo
Created on: JANUARY 31, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

15. Floating Button


Author: Vincent Van Goggles
Source:  Code / Demo
Created on: OCTOBER 27, 2017
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS

16. Add Button Hover Animation


Author: Aaron Iker
Source:  Code / Demo
Created on: OCTOBER 19, 2018
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS)

17. Floating Action Button with Modal Test


Author: Morten Sørensen
Source:  Code / Demo
Created on: MARCH 22, 2015
Compatible browsers: Chrome, Firefox, Opera, Edge, Brave
Made with: HTML, CSS(SCSS), JavaScript