Deep Looping Circle Animation with CSS and HTML Code
Deep Looping Circle image #safhatech_design

Deep Looping Circle Animation with CSS and HTML Code

Deep Looping Circle: In this lesson we will learn how to create a deep looping circle as a loading web page. This code is created with css and html. The code could be downloaded from safhatech.com from this lesson post.

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 23

This Video explain the same topic:

https://youtu.be/bj6X8sf-1ng

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="center">

<div class="loading">
    <span></span>
    <span></span>
    <span></span>
    <span></span>
    <span></span>
</div>
</div>
</body>
</html>

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

body{
    padding: 0;
    margin: 0;
    background-color: #0d445e;
}
.center{
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.loading{
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading span{
    position: absolute;
    animation: animate 2s linear infinite;
    border-radius: 50%;
}
.loading span:nth-child(1){
    animation-delay: 0.0s;
}
.loading span:nth-child(2){
    animation-delay: 0.5s;
}
.loading span:nth-child(3){
    animation-delay: 1s;
}
.loading span:nth-child(4){
    animation-delay: 1.5s;
}
.loading span:nth-child(5){
    animation-delay: 2s;
}
@keyframes animate {
    0%{
        width: 100%;
        height: 100%;
        opacity: 0;
        box-shadow: inset 0 0 50px rgba(17, 17, 17, 0.1);
    }
    100%{
        width: 0;
        height: 0;
        opacity: 1;
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.8);
    }
}


Finally: You could Download the code from here:Download Code



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