Skip to content

Commit 6a58175

Browse files
update theme
1 parent e330204 commit 6a58175

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ a vue component about toy bricks of skeleton screen loading
113113
| theme | the same as skeleton theme | String | normal |
114114
| shape | the same as skeleton shape | String | rect |
115115
| bgColor | the same as skeleton bgColor | String | |
116-
| aspectRatio | ratio about width,height | Number | 1 |
116+
| aspectRatio | ratio about width,height | Number | |
117117
| height | the tb-skeleton height | Number,String | |
118118
| width | the tb-skeleton width | Number,String | 100% |
119119
| duration | the tb-skeleton animation duration | String,Number | |

example/skeleton.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
</i-col>
3636
<i-col :span="16">
3737
<row>
38-
<skeleton duration=".6" bg-color="#dcdcdc">
38+
<skeleton duration="1.5" bg-color="#dcdcdc">
3939
<i-col :span="12" style="padding-left: 10px;margin-top: 5px">
4040
<tb-skeleton :aspect-ratio="0.2" theme="flex-outer"></tb-skeleton>
4141
</i-col>
4242
<i-col :span="24" style="padding-left: 10px;margin-top: 10px">
43-
<tb-skeleton :aspect-ratio="0.1" theme="flex-inner"></tb-skeleton>
43+
<tb-skeleton :aspect-ratio="0.1" theme="gradient"></tb-skeleton>
4444
</i-col>
4545
<i-col :span="12" style="padding-left: 10px;margin-top: 10px">
4646
<tb-skeleton :aspect-ratio="0.2" theme="flex-outer"></tb-skeleton>

src/styles/skeleton.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $prefix: '.c-skeleton__tb';
1717
animation: opacity 2s linear infinite normal
1818
}
1919
&--gradient {
20-
background: linear-gradient(to right, rgba(220, 220, 220, .4) 13%, rgba(220, 220, 220, 1) 14%);
20+
background: linear-gradient(to right, rgba(255, 255, 255,.5) 2%,rgba(255, 255, 255,.9) 11%,rgba(255, 255, 255,.8) 13%, transparent 14%);
2121
animation: gradient 1s linear infinite normal;
2222
background-size: 200% 100%;
2323
}

0 commit comments

Comments
 (0)