-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skeleton shimmer mixin file, doc ex cleanup
- Loading branch information
1 parent
e0da9d8
commit 4295eb0
Showing
5 changed files
with
43 additions
and
46 deletions.
There are no files selected for viewing
50 changes: 8 additions & 42 deletions
50
playbook/app/pb_kits/playbook/pb_skeleton_loading/_skeleton_loading.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
playbook/app/pb_kits/playbook/pb_skeleton_loading/_skeleton_loading_mixins.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Animation | ||
@keyframes wave { | ||
0% { | ||
background-position: -468px 0; | ||
} | ||
100% { | ||
background-position: 468px 0; | ||
} | ||
} | ||
|
||
// Shimmer animation and gradient mixin based on color | ||
@mixin skeleton-shimmer($color) { | ||
background-color: $color; | ||
background-image: linear-gradient( | ||
to left, | ||
$color 0%, | ||
lighten($color, 10%) 50%, | ||
lighten($color, 10%) 60%, | ||
$color 80%, | ||
$color 100% | ||
); | ||
// background-size: 800px 104px; | ||
background-repeat: no-repeat; | ||
animation: wave 1.5s linear infinite; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters