Ad Code

Ticker

6/recent/ticker-posts

Simple Loader using HTML & CSS only! Create a Loading animation | HTML & CSS only | Abhicoder

    Hey guys! In this video I will show you that how you can create a simple search animation using HTML & CSS only! So here is a video tutorial below and there is also the code at the bottom you can also copy the code from there! Have a nice day!




HTML code:-



<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>Abhicoder - Creative Mind! Loading---</title>
</head>
<body>
    <div class="container">
        <div class="spinner"></div>
    </div>
</body>
</html>


CSS code:-


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.container{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4285f4;
}

.spinner{
    width: 80px;
    height: 80px;
    border: 7px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.7s linear infinite;
}

@keyframes spinner{
    form{}
    to{
        transform: rotate(360deg);
    }
}


Hope it was help full for you then please SUBSCRIBE to my channel!

Thank you!

Post a Comment

0 Comments

Ad Code