Google Inspired Floating Action Button

Developer
Size
2,967 Kb
Views
153,824

How do I make an google inspired floating action button?

Click the button. What is a google inspired floating action button? How do you make a google inspired floating action button? This script and codes were developed by Sasha on 12 June 2022, Sunday.

Google Inspired Floating Action Button Previews

Google Inspired Floating Action Button - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Google Inspired Floating Action Button</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css'>
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <input type="checkbox" id="toggle" /> <label class="button" for="toggle"></label> <nav class="nav"> <a href="http://sashatran.com" target="_blank">About</a> <a href="http://codepen.io/sashatran/pens/public/" target="_blank">Home</a> <a href="https://www.linkedin.com/in/sasha-tran-23498989/" target="_blank">Hire Me</a> <a href="https://www.youtube.com/channel/UCCATAa8MWoBuH-sR_Jlx29A" target="_blank">Subscribe</a> </nav> </div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
</body>
</html>

Google Inspired Floating Action Button - Script Codes CSS Codes

@import url("https://fonts.googleapis.com/css?family=Roboto");
body { background: linear-gradient(45deg, #FBE7C5, #F5CAC3);
}
.container, .button, .nav { position: absolute;
}
.container { margin: auto; top: 0; left: 0; bottom: 0; right: 0; width: 50px; height: 100px;
}
#toggle { display: none;
}
.button { z-index: 999; width: 43px; height: 43px; background: #F28482; border-radius: 100%; transition: all 0.5s ease-in-out; box-shadow: 1px 3px 10px 0 rgba(0, 0, 0, 0.3); cursor: pointer;
}
.button:before { position: absolute; top: 20px; left: 9px; content: ''; width: 25px; height: 2px; background: #FFF; transform: rotate(90deg);
}
.button:after { position: absolute; top: 20px; left: 9px; content: ''; width: 25px; height: 2px; background: #FFF;
}
.nav { transform: translateY(-10%); opacity: 0; top: 13px; left: -50px; transition: all 0.5s ease-in-out; background: #FFF; width: 150px; border-radius: 5px; transform: translateY(0%); box-shadow: 2px 3px 10px 0 rgba(0, 0, 0, 0.1);
}
.nav a { text-align: center; display: block; margin: 20px 0; color: #F28482; text-decoration: none; font-family: 'Roboto', sans-serif; text-transform: uppercase; letter-spacing: 2px;
}
#toggle:checked ~ .nav { opacity: 1; transform: translateY(10%);
}
#toggle:checked ~ .button { transform: rotate(135deg); box-shadow: 0 0 0 0 transparent;
}
Google Inspired Floating Action Button - Script Codes
Google Inspired Floating Action Button - Script Codes
Home Page Home
Developer Sasha
Username sashatran
Uploaded June 12, 2022
Rating 4.5
Size 2,967 Kb
Views 153,824
Do you need developer help for Google Inspired Floating Action Button?

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!

Sasha (sashatran) Script Codes
Create amazing web content with AI!

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!