By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
rocoderesrocoderes
  • Home
  • HTML & CSS
    • Login and Registration Form
    • Card Design
    • Loader
  • JavaScript
  • Python
  • Internet
  • Landing Pages
  • Tools
    • Google Drive Direct Download Link Generator
    • Word Count
  • Games
    • House Painter
Notification Show More
Latest News
How to set the dropdown value by clicking on a table row
Javascript – How to set the dropdown value by clicking on a table row
JavaScript
Attempting to increase the counter, when the object's tag exist
Javascript – Attempting to increase the counter, when the object’s tag exist
JavaScript
Cycle2 JS center active slide
Javascript – Cycle2 JS center active slide
JavaScript
Can import all THREE.js post processing modules as ES6 modules except OutputPass
Javascript – Can import all THREE.js post processing modules as ES6 modules except OutputPass
JavaScript
How to return closest match for an array in Google Sheets Appscript
Javascript – How to return closest match for an array in Google Sheets Appscript
JavaScript
Aa
Aa
rocoderesrocoderes
Search
  • Home
  • HTML & CSS
    • Login and Registration Form
    • Card Design
    • Loader
  • JavaScript
  • Python
  • Internet
  • Landing Pages
  • Tools
    • Google Drive Direct Download Link Generator
    • Word Count
  • Games
    • House Painter
Follow US
High Quality Design Resources for Free.
rocoderes > HTML & CSS > Loader > How to Make A Minimalist Loader Using CSS
HTML & CSSLoader

How to Make A Minimalist Loader Using CSS

Admin
Last updated: 2022/12/02 at 4:34 AM
Admin
Share
4 Min Read
minimalist loader using css

In this article, we will create a minimalist loader using CSS. In this small project, we will add some animation to loading text which has a spinning alphabet ‘o’. This is what we will do in this beginner-friendly project. Also, this will consist of very basic CSS styling, as we have done in previous loaders.

Contents
Pre-requisites to Create Minimalist Loader Using CSSCreating Basic HTML and CSS ValueCustomizing The TextAdding Spinner and AnimationsFull Source Code of Create A Minimalist Loader Using CSSOutput
Demo

Pre-requisites to Create Minimalist Loader Using CSS

  • Basic knowledge of HTML.
  • Basic knowledge of CSS and CSS animations.

Creating Basic HTML and CSS Value

<html>
    <head>
        <title>Minimalist Loader</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="loader">
            L <div class="spinner"></div>ADER
        </div>
    </body>
</html>
body{
    margin: 0;
    padding: 0;
    background-color: #7acdca;
}

In HTML, we have just added a div with class name loader and this will be our area where we will display our text. Also, in this we have added text “Loader” but instead of letter ‘o’ we have added another div. We will add some kind of round shaped circle which will get animated.

Now for CSS, We have just removed the default of the values from the DOM using margin and padding to 0. Also, we have colored our background with #7acdca.

Customizing The Text

.loader{
    height: 150px;
    width: 685px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 150px;
    color: #291f24;
    font-family: 'Raleway', sans-serif;
}

Now, we have just made our text pretty large area using height and width, also we have made position to absolute also provided some margin to auto, so some margin will be added automatically. Now we have increased font-size of 150px with the #291f24 color which is so much closer to black color. And finally we have added font-family of Raleway which is sans-serif type font.

Adding Spinner and Animations

.spinner{
    display: inline-block;
    height: 90px;
    width: 90px;
    border-radius: 50%;
    border: 15px solid rgba(255,255,255,0.2);
    border-top: 15px solid white;
    animation: spin 2s infinite;
}
@keyframes spin{
    100%{
        transform: rotate(360deg);
    }
}

Now time to add spinner at the position of letter ‘o’. First, we have added display to inline-block with this all letters will come in one block, or you can say it will come together. Then we have added some height and width. Now, we have added a gray border which is 15px thick, then after, we have formed the border to round shape using border-radius to 50%. Now we have added white border on just one side, let’s say top-border.

Then after, we have added some animation named spin for 2 second duration and for infinite times. Now we will add @keyframe to define the animation, in this definition we have just rotated for 360 degrees at every 100%.

Full Source Code of Create A Minimalist Loader Using CSS

index.html

<html>
    <head>
        <title>Minimalist Loader</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="loader">
            L <div class="spinner"></div>ADER
        </div>
    </body>
</html>

style.css

body{
    margin: 0;
    padding: 0;
    background-color: #7acdca;
}

.loader{
    height: 150px;
    width: 685px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 150px;
    color: #291f24;
    font-family: 'Raleway', sans-serif;
}

.spinner{
    display: inline-block;
    height: 90px;
    width: 90px;
    border-radius: 50%;
    border: 15px solid rgba(255,255,255,0.2);
    border-top: 15px solid white;
    animation: spin 2s infinite;
}
@keyframes spin{
    100%{
        transform: rotate(360deg);
    }
}

Output

minimalist loader using CSS
Demo
Download Code

Check out video reference here:

You May Also Like:

  • How To Make Paint Loading Animation in CSS
  • How To Make Chemical Reaction With CSS Animation
  • How To Make Skeleton Loading Animation With CSS & JS

Related

Subscribe to Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

TAGGED: Animation, loader, Minimalist, minimalist loader using css
Share this Article
Facebook Twitter Email Print
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Posted by Admin
Follow:
Rocoderes is a blog you can learn HTML, CSS, JavaScript, React Js and Python along with creative coding stuff and free source code files.
Previous Article crawl loader using css How to Make Crawl Loader using CSS
Next Article Modern eCommerce Website with HTML How to Make a Modern eCommerce Website with HTML
Leave a comment Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

- Advertisement -

You Might Also Like

Price Range Slider

How to Make Price Range Slider Using JavaScript

December 8, 2022
save text as File in HTML

How to Save Text as File in JavaScript

December 5, 2022
Calendar in HTML

How to Make Dynamic Calendar in HTML & JavaScript

December 5, 2022
instagram signup form

How to Make Instagram Signup Page In HTML and CSS

December 5, 2022
rocoderesrocoderes
Follow US

Copyright © 2022 All Right Reserved By Rocoderes

  • Home
  • About us
  • Contact us
  • Disclaimer
Join Us!

Subscribe to our newsletter and never miss our latest news, podcasts etc.

Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Lost your password?