Facebook style loading animation in pure CSS
How do I make an facebook style loading animation in pure css?
This loading animation is inspired by Facebook's loading animation. This is written in pure CSS and can be used on any element by adding the class name.. What is a facebook style loading animation in pure css? How do you make a facebook style loading animation in pure css? This script and codes were developed by Girish Sharma on 02 August 2022, Tuesday.
Facebook style loading animation in pure CSS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Facebook style loading animation in pure CSS</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /** * This work is licensed under the Creative Commons * Attribution 3.0 Unported License. To view a copy * of this license, visit http://creativecommons.org/licenses/by/3.0/. * * Author: Girish Sharma <[email protected]> */
/* Demo specific styles begin */
* {margin: 0; padding: 0;}
body { background: #eee;
}
.loader-fb { top: calc(50% - 5px); left: calc(50% - 5px); position: absolute !important;
}
/* Demo specific styles end */
/* Loader with three blocks */
.loader-fb, .loader-fb:before, .loader-fb:after { position: relative; display: inline-block; width: 20px; height: 50px; background-color: rgba(215,230,240,0.9); border: 1px solid rgb(215,230,240); z-index: 100000; content: ' '; margin-left: -5px; margin-right: -9px;
}
.loader-fb:before { top: -11px; left: -100%; animation: loading-fb .8s cubic-bezier(.4,.5,.6,1) infinite;
}
.loader-fb { animation: loading-fb-main .8s cubic-bezier(.4,.5,.6,1) .2s infinite;
}
.loader-fb:after { top: -11px; right: -100%; margin-top: 50%; animation: loading-fb .8s cubic-bezier(.4,.5,.6,1) .4s infinite;
}
@keyframes loading-fb { from { transform: scaleY(1.4); background-color: rgba(55,114,171,0.9); border: 1px solid rgb(55,114,171); }
}
@keyframes loading-fb-main { from { padding-top: 10px; padding-bottom: 10px; margin-top: -10px; background-color: rgba(55,114,171,0.9); border: 1px solid rgb(55,114,171); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="loader-fb"></div>
</body>
</html>
Facebook style loading animation in pure CSS - Script Codes CSS Codes
/** * This work is licensed under the Creative Commons * Attribution 3.0 Unported License. To view a copy * of this license, visit http://creativecommons.org/licenses/by/3.0/. * * Author: Girish Sharma */
/* Demo specific styles begin */
* {margin: 0; padding: 0;}
body { background: #eee;
}
.loader-fb { top: calc(50% - 5px); left: calc(50% - 5px); position: absolute !important;
}
/* Demo specific styles end */
/* Loader with three blocks */
.loader-fb, .loader-fb:before, .loader-fb:after { position: relative; display: inline-block; width: 20px; height: 50px; background-color: rgba(215,230,240,0.9); border: 1px solid rgb(215,230,240); z-index: 100000; content: ' '; margin-left: -5px; margin-right: -9px;
}
.loader-fb:before { top: -11px; left: -100%; animation: loading-fb .8s cubic-bezier(.4,.5,.6,1) infinite;
}
.loader-fb { animation: loading-fb-main .8s cubic-bezier(.4,.5,.6,1) .2s infinite;
}
.loader-fb:after { top: -11px; right: -100%; margin-top: 50%; animation: loading-fb .8s cubic-bezier(.4,.5,.6,1) .4s infinite;
}
@keyframes loading-fb { from { transform: scaleY(1.4); background-color: rgba(55,114,171,0.9); border: 1px solid rgb(55,114,171); }
}
@keyframes loading-fb-main { from { padding-top: 10px; padding-bottom: 10px; margin-top: -10px; background-color: rgba(55,114,171,0.9); border: 1px solid rgb(55,114,171); }
}
Developer | Girish Sharma |
Username | grssam |
Uploaded | August 02, 2022 |
Rating | 3 |
Size | 2,769 Kb |
Views | 190,256 |
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 |
Korean Flag in pure CSS | 1,784 Kb |
Tilted Horizontal 3D spinner in pure CSS | 2,912 Kb |
Gmail like loading animation in pure CSS | 2,845 Kb |
Metro style loading spinner animation in pure CSS | 2,820 Kb |
Fractal Snow Flake | 2,092 Kb |
Google Plus loading animation in pure CSS | 4,572 Kb |
Google Canary icon in pure CSS | 3,981 Kb |
Google browser icon set in Pure CSS | 4,733 Kb |
Chromium icon in Pure CSS | 4,052 Kb |
Loader dots in pure CSS and 1 element | 2,500 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 |
Canvas stripes | Adrianparr | 1,948 Kb |
Vue.js Lazy Loading | Kjbrum | 3,620 Kb |
Fading text with CSS blend modes | Giana | 3,305 Kb |
Incremental game | Eprouver | 5,868 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Css or Czz.. | Judag | 4,111 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
A Pen by John Malc | F789gh | 1,420 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Simple content swap | Snografx | 1,859 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!