adc

clicks

Loading Spinner With Pure HTML and CSS

 How to Use. Click the loader you want. Copy CSS to your CSS file. Copy HTML to where you need a loader. Done.

HTML
Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.
After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.

<!DOCTYPE html>

<html>

<head>

               <title>Spin </title>

               <style>

                              *{

                                             padding: 0;

                                             margin: 0;

                              }

                              body{

                                             background-color: black;

                                            

                              }

                              .loader{

                                             border: 16px solid #f3f3f3;

                                             border-radius: 50%;

                                             border-top: 16px solid #2b85fd;

                                             width: 140px;

                                             height: 140px;

                                             animation: spin 2s linear infinite;

                              }

 

                              @keyframes spin{

                                             0%{

                                                            transform: rotate(0deg);

                                             }

                                             100%{

                                                            transform: rotate(360deg);

                                             }

                              }

 

               </style>

</head>

<body>

                              <div class="loader"></div>

</body>

</html>

 




Loading Spinner With Pure HTML and CSS  Loading Spinner With Pure HTML and CSS Reviewed by easycoding on August 26, 2020 Rating: 5

No comments:

Powered by Blogger.