spinner in html css react

Solutions on MaxInterview for spinner in html css react by the best coders in the world

showing results for - "spinner in html css react"
Sophie
08 Nov 2020
1<!DOCTYPE html>
2<html>
3<head>
4<meta name="viewport" content="width=device-width, initial-scale=1">
5<style>
6.loader {
7  border: 16px solid #f3f3f3;
8  border-radius: 50%;
9  border-top: 16px solid white;
10  border-bottom: 16px solid white;
11  width: 120px;
12  height: 120px;
13  -webkit-animation: spin 2s linear infinite;
14  animation: spin 2s linear infinite;
15}
16
17@-webkit-keyframes spin {
18  0% { -webkit-transform: rotate(0deg); }
19  100% { -webkit-transform: rotate(360deg); }
20}
21
22@keyframes spin {
23  0% { transform: rotate(0deg); }
24  100% { transform: rotate(360deg); }
25}
26</style>
27</head>
28<body>
29
30<h2>How To Create A Loader</h2>
31
32<div class="loader"></div>
33
34</body>
35</html>
36