Skip to content

Instantly share code, notes, and snippets.

@samukasmk
Created October 29, 2025 18:01
Show Gist options
  • Select an option

  • Save samukasmk/5de10e30a7c869230a7de1077c9fbca0 to your computer and use it in GitHub Desktop.

Select an option

Save samukasmk/5de10e30a7c869230a7de1077c9fbca0 to your computer and use it in GitHub Desktop.
Sample of loading spinning
<!-- https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_loader -->
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.loader {
border: 5px solid #f3f3f3;
border-radius: 50%;
border-top: 5px solid #555;
width: 50px;
height: 50px;
-webkit-animation: spin 2s linear infinite; /* Safari */
animation: spin 2s linear infinite;
}
/* Safari */
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div>
<h3>Loading...</h3>
<div class="loader"></div>
<div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment