Files
freeCodeCamp/client/src/components/helpers/skeletonStyles.js

74 lines
1.2 KiB
JavaScript
Raw Normal View History

export default `
.sprite-container {
height: 100%;
width: 100%;
}
.sprite-svg {
height: 100%;
width: 100%;
2020-09-03 14:21:16 +03:00
background: var(--theme-color);
}
@-webkit-keyframes shimmer{
0% {
-webkit-transform: translateX(0%);
transform: translateX(0%);
stroke-width: 2px;
}
2020-09-03 14:21:16 +03:00
5%{
opacity:100%;
}
35% {
stroke-width: 30px;
2020-09-03 14:21:16 +03:00
opacity:100%;
}
65%{
opacity:100%;
}
100% {
-webkit-transform: translateX(100%);
transform: translateX(100%);
stroke-width: 2px;
}
}
@keyframes shimmer{
0% {
-webkit-transform: translateX(0%);
transform: translateX(0%);
stroke-width: 2px;
}
35% {
stroke-width: 30px;
2020-09-03 14:21:16 +03:00
opacity:100%;
}
65%{
opacity:100%;
}
100% {
-webkit-transform: translateX(100%);
transform: translateX(100%);
stroke-width: 2px;
}
}
.sprite {
2020-09-03 14:21:16 +03:00
opacity:0%;
-webkit-animation-name: shimmer;
animation-name: shimmer;
2020-09-03 14:21:16 +03:00
animation-delay: 1s;
width: 2px;
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-direction: normal;
animation-direction: normal;
}
`;