Skip to content

Commit c898da9

Browse files
authored
Merge pull request rohit8020#7 from abhaygupta08/main
build/loader-4
2 parents 2419fc0 + 1e7576d commit c898da9

File tree

3 files changed

+137
-12
lines changed

3 files changed

+137
-12
lines changed

index.css

+57-8
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,7 @@ footer .footer{
197197
}
198198
}
199199

200-
201-
202-
203-
204-
/* .............Loader-nth............... */
205-
/* add the css for the Loader-nth... */
206-
200+
/* Loader-3 */
207201

208202
.black
209203
{
@@ -259,4 +253,59 @@ footer .footer{
259253
z-index: 1;
260254
background: linear-gradient(45deg,transparent,transparent 40%,#e5f403);
261255
filter: blur(30px);
262-
}
256+
}
257+
258+
/* ...............Loader-4................. */
259+
.loader-4{
260+
display: flex;
261+
justify-content: center;
262+
align-items: center;
263+
width: 120px;
264+
height: 120px;
265+
}
266+
.dot-loader {
267+
height: 20px;
268+
width: 20px;
269+
border-radius: 50%;
270+
background-color: black;
271+
position: relative;
272+
-webkit-animation: 1.2s grow ease-in-out infinite;
273+
animation: 1.2s grow ease-in-out infinite;
274+
}
275+
276+
.dot-loader--2 {
277+
-webkit-animation: 1.2s grow ease-in-out infinite 0.15555s;
278+
animation: 1.2s grow ease-in-out infinite 0.15555s;
279+
margin: 0 20px;
280+
}
281+
.dot-loader--3 {
282+
-webkit-animation: 1.2s grow ease-in-out infinite 0.3s;
283+
animation: 1.2s grow ease-in-out infinite 0.3s;
284+
}
285+
@-webkit-keyframes grow {
286+
0%, 40%, 100% {
287+
-webkit-transform: scale(0);
288+
transform: scale(0);
289+
}
290+
40% {
291+
-webkit-transform: scale(1);
292+
transform: scale(1);
293+
}
294+
}
295+
@keyframes grow {
296+
0%, 40%, 100% {
297+
-webkit-transform: scale(0);
298+
transform: scale(0);
299+
}
300+
40% {
301+
-webkit-transform: scale(1);
302+
transform: scale(1);
303+
}
304+
}
305+
306+
307+
308+
/* .............Loader-nth............... */
309+
/* add the css for the Loader-nth... */
310+
311+

index.html

+20-4
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,32 @@ <h1>Copy Code</h1>
5151
<a href="#demo-modal" id="2" class="show-code-btn">Show Code</a>
5252
</div>
5353

54+
55+
<!-- Loader-3 -->
56+
<div class="loader-box black">
57+
<div class="loader"></div>
58+
<a href="#demo-modal" id="3" class="show-code-btn .white">Show Code</a>
59+
</div>
60+
61+
<!-- Loader-4 -->
62+
<div class="loader-box">
63+
<div class="loader-4">
64+
65+
<div class="dot-loader"></div>
66+
<div class="dot-loader dot-loader--2"></div>
67+
<div class="dot-loader dot-loader--3"></div>
68+
69+
</div>
70+
<a href="#demo-modal" id="4" class="show-code-btn">Show Code</a>
71+
</div>
72+
73+
5474
<!-- Loader-n -->
5575
<!--
5676
You can add the loader HTML code here and add the css code inside the
5777
index.css file
5878
5979
-->
60-
<div class="loader-box black">
61-
<div class="loader"></div>
62-
<a href="#demo-modal" id="3" class="show-code-btn .white">Show Code</a>
63-
</div>
6480
<div class="loader-box">More to add...</div>
6581

6682
<!-- Loader -->

index.js

+60
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,66 @@ let codes = [
164164
}
165165
`
166166
},
167+
{
168+
id : 4,
169+
code : `/* Loader-4 */
170+
#HTML
171+
<div class="loader-4">
172+
173+
<div class="dot-loader"></div>
174+
<div class="dot-loader dot-loader--2"></div>
175+
<div class="dot-loader dot-loader--3"></div>
176+
177+
</div>
178+
#CSS
179+
.loader-4{
180+
display: flex;
181+
justify-content: center;
182+
align-items: center;
183+
width: 120px;
184+
height: 120px;
185+
}
186+
.dot-loader {
187+
height: 20px;
188+
width: 20px;
189+
border-radius: 50%;
190+
background-color: black;
191+
position: relative;
192+
-webkit-animation: 1.2s grow ease-in-out infinite;
193+
animation: 1.2s grow ease-in-out infinite;
194+
}
195+
196+
.dot-loader--2 {
197+
-webkit-animation: 1.2s grow ease-in-out infinite 0.15555s;
198+
animation: 1.2s grow ease-in-out infinite 0.15555s;
199+
margin: 0 20px;
200+
}
201+
.dot-loader--3 {
202+
-webkit-animation: 1.2s grow ease-in-out infinite 0.3s;
203+
animation: 1.2s grow ease-in-out infinite 0.3s;
204+
}
205+
@-webkit-keyframes grow {
206+
0%, 40%, 100% {
207+
-webkit-transform: scale(0);
208+
transform: scale(0);
209+
}
210+
40% {
211+
-webkit-transform: scale(1);
212+
transform: scale(1);
213+
}
214+
}
215+
@keyframes grow {
216+
0%, 40%, 100% {
217+
-webkit-transform: scale(0);
218+
transform: scale(0);
219+
}
220+
40% {
221+
-webkit-transform: scale(1);
222+
transform: scale(1);
223+
}
224+
}
225+
`,
226+
}
167227
];
168228

169229

0 commit comments

Comments
 (0)