Skip to content

Commit d0f8fe2

Browse files
committed
add breath; separate border style in ld-ring
1 parent 27b5155 commit d0f8fe2

2 files changed

Lines changed: 48 additions & 4 deletions

File tree

dist/loading.css

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,38 @@
15951595
-webkit-animation: ld-wrench 1s infinite;
15961596
animation: ld-wrench 1s infinite;
15971597
}
1598+
@keyframes ld-breath {
1599+
0% {
1600+
-webkit-transform: scale(0.86);
1601+
transform: scale(0.86);
1602+
}
1603+
50% {
1604+
-webkit-transform: scale(1.06);
1605+
transform: scale(1.06);
1606+
}
1607+
100% {
1608+
-webkit-transform: scale(0.86);
1609+
transform: scale(0.86);
1610+
}
1611+
}
1612+
@-webkit-keyframes ld-breath {
1613+
0% {
1614+
-webkit-transform: scale(0.86);
1615+
transform: scale(0.86);
1616+
}
1617+
50% {
1618+
-webkit-transform: scale(1.06);
1619+
transform: scale(1.06);
1620+
}
1621+
100% {
1622+
-webkit-transform: scale(0.86);
1623+
transform: scale(0.86);
1624+
}
1625+
}
1626+
.ld.ld-breath {
1627+
-webkit-animation: ld-breath 1s infinite;
1628+
animation: ld-breath 1s infinite;
1629+
}
15981630
@keyframes ld-slide-rtl {
15991631
0%, 100% {
16001632
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
@@ -2896,13 +2928,15 @@
28962928
width: 0;
28972929
height: 0;
28982930
border-radius: 50%;
2899-
border: 0.5em solid;
2931+
border-style: solid;
2932+
border-width: 0.5em;
29002933
-webkit-background-clip: padding-box;
29012934
border-color: currentColor currentColor currentColor transparent;
29022935
}
29032936
.ld-ring:after {
29042937
border-radius: 50%;
2905-
border: 0.15em solid;
2938+
border-style: solid;
2939+
border-width: 0.15em;
29062940
-webkit-background-clip: padding-box;
29072941
border-color: currentColor currentColor currentColor transparent;
29082942
}
@@ -2911,7 +2945,8 @@
29112945
height: 0;
29122946
background: none;
29132947
border-radius: 50%;
2914-
border: 0.5em solid;
2948+
border-style: solid;
2949+
border-width: 0.5em;
29152950
border-color: currentColor transparent currentColor transparent;
29162951
}
29172952
.ld-cross:after {
@@ -2935,4 +2970,3 @@
29352970
.ld-loader {
29362971
background-size: cover;
29372972
}
2938-

src/loading/index.styl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,16 @@ $c5 = #ff9900
533533
.ld.ld-wrench
534534
animation(ld-wrench 1s infinite)
535535

536+
+keyframes(ld-breath)
537+
0%
538+
transform(scale(0.86))
539+
50%
540+
transform(scale(1.06))
541+
100%
542+
transform(scale(0.86))
543+
.ld.ld-breath
544+
animation(ld-breath 1s infinite)
545+
536546
@import 'loading/slide'
537547
@import 'loading/bounce'
538548
@import 'loading/rush'

0 commit comments

Comments
 (0)