Skip to content

Commit 8903a6a

Browse files
committed
update transitions
1 parent b99f90f commit 8903a6a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/vue-loading-button.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export default {
5858
line-height: 28px;
5959
font-size: 20px;
6060
position: relative;
61-
-webkit-transition: all 0.3s;
62-
transition: all 0.3s;
61+
-webkit-transition: all 0.2s;
62+
transition: all 0.2s;
6363
transition-timing-function: ease-in;
6464
overflow: hidden;
6565
}
@@ -68,15 +68,18 @@ export default {
6868
box-shadow: 0 0 0 3px lightblue,
6969
0 0 0 1.5px lightblue;
7070
}
71+
.vue-loading-button:not(.loading) {
72+
transition-delay: 0.3s;
73+
}
7174
.vue-loading-button > .spinner {
7275
line-height: 1.15;
7376
position: absolute;
7477
top: 50%;
7578
left: auto;
7679
right: 1.2em;
7780
margin: -0.5em;
78-
-webkit-transition: all 0.3s;
79-
transition: all 0.3s;
81+
-webkit-transition: all 0.2s;
82+
transition: all 0.2s;
8083
transition-timing-function: ease-in;
8184
}
8285
.spinner span {
@@ -94,6 +97,10 @@ export default {
9497
-webkit-transition: opacity 0.3s;
9598
transition: opacity 0.3s;
9699
transition-timing-function: ease;
100+
transition-delay: 0.2s;
101+
}
102+
.vue-loading-button:not(.loading) .spinner span {
103+
transition-delay: 0s;
97104
}
98105
.spinner span:nth-child(1) {
99106
animation-delay: -0.45s;

0 commit comments

Comments
 (0)