Skip to content

Commit 0cb862b

Browse files
committed
feat: Add new spinner animation "Spinning Square SVG Loader"
1 parent a78ea0a commit 0cb862b

File tree

6 files changed

+58
-0
lines changed

6 files changed

+58
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ There will be continuous updates in the future. Thank you!
242242
<img src="static/image/html5.png" width="20px">
243243
<img src="static/image/css3.png" width="20px">
244244

245+
- [Spinning Square SVG Loader](https://github.com/Dev-JeromeBaek/awesome-web-styling/tree/master/loading/spinning-square-svg-loader)
246+
<img src="static/image/html5.png" width="20px">
247+
<img src="static/image/css3.png" width="20px">
248+
245249
- [Widget Spinner Loading](https://github.com/Dev-JeromeBaek/awesome-web-styling/tree/master/loading/widget-spinner-loading)
246250
<img src="static/image/html5.png" width="20px">
247251
<img src="static/image/css3.png" width="20px">
48.6 KB
Loading

loading/README.MD

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
- [Simple square point loading](https://github.com/Dev-JeromeBaek/awesome-web-styling/tree/master/loading/simple-square-point-loading)
2626

27+
- [Spinning Square SVG Loader](https://github.com/Dev-JeromeBaek/awesome-web-styling/tree/master/loading/spinning-square-svg-loader)
28+
2729
- [Widget Spinner Loading](https://github.com/Dev-JeromeBaek/awesome-web-styling/tree/master/loading/widget-spinner-loading)
2830

2931
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Widget Spinner Loading
2+
3+
![Edit [Web] Spinning Square SVG Loader](../../gifs/loading/spinning-square-svg-loader.gif)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<html>
2+
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<link rel="shortcut icon" href="../../favicon.ico">
8+
<link rel="stylesheet" type="text/css" href="style.css">
9+
<title>Spinning Square SVG Loader</title>
10+
</head>
11+
12+
<body>
13+
<svg>
14+
<rect></rect>
15+
</svg>
16+
</body>
17+
18+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
display: flex;
5+
justify-content: center;
6+
align-items: center;
7+
min-height: 100vh;
8+
background: #042331;
9+
}
10+
11+
svg {
12+
width: 100px;
13+
height: 100px;
14+
}
15+
16+
svg rect {
17+
width: 100px;
18+
height: 100px;
19+
fill: none;
20+
stroke-width: 100px;
21+
stroke: #00adff;
22+
stroke-dasharray: 100;
23+
stroke-dashoffset: 50%;
24+
animation: animate 2s linear infinite;
25+
}
26+
27+
@keyframes animate {
28+
to {
29+
stroke-dashoffset: 250%;
30+
}
31+
}

0 commit comments

Comments
 (0)