How to Create a Loading Circle in with HTML & CSS Code?
CIRCLE LOADING IMAGE safhatech design

How to Create a Loading Circle in with HTML & CSS Code?

Loading Circle: In this lesson we will learn how to add a loading circle as a loading or landing web page. You could download the code at this post bottom. The code is created with only CSS and HTML.

This lesson is a part of an animated loading page course. These lessons is supported with: SAFHATECH.COM.

You could see the other videos and lessons by going to safhatech.com and going to categories. From the navigation bar and then loading at design.

The order of this lesson is like this:

  • Creating empty HTML file then add HTML code.
  • Creating empty style-sheet file and then adding CSS style.

Lesson 15

This Video explain the same topic ” Rolling Tire Animation”:

https://youtu.be/T1AUttAYKaQ

Creating empty HTML file then add HTML code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="round"></div>
</body>
</html>

Creating empty style-sheet file and then adding CSS style:

body{
    margin: 0;
    padding: 0;
    background-color: #0b3054;
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;

}
.round{
    position: absolute;
    top:50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 20px solid #282828;
    border-radius: 50%;
    border-top: 20px solid #e49823;
    animation: animate 1s linear infinite;
}
@keyframes animate {
    0%{
        transform: translate(-50%,-50%) rotate(0deg);
    }
    100%{
        transform: translate(-50%,-50%) rotate(360deg);
    }
}

Finally: You could Download the code from here:



Consequently You could follow us at :

Website URL: https://www.safhatech.com/

YouTube: https://www.youtube.com/channel/UCIVzh6iykNowNcOUT5Gfasw

Twitter: http:// https://twitter.com/safhatech

Instagram: https://www.instagram.com/safhatech

Facebook: http:// https://www.facebook.com/Safhatech-487171875443687

Phone: 967778283416

Leave a Reply