2021-03-26 00:43:43 +05:30
|
|
|
const styles = `
|
2018-03-08 15:47:48 +00:00
|
|
|
|
|
|
|
.sprite-container {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sprite-svg {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2020-09-03 14:21:16 +03:00
|
|
|
background: var(--theme-color);
|
2018-03-08 15:47:48 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@-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%;
|
|
|
|
}
|
2018-03-08 15:47:48 +00:00
|
|
|
35% {
|
|
|
|
stroke-width: 30px;
|
2020-09-03 14:21:16 +03:00
|
|
|
opacity:100%;
|
|
|
|
}
|
|
|
|
65%{
|
|
|
|
opacity:100%;
|
2018-03-08 15:47:48 +00:00
|
|
|
}
|
|
|
|
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%;
|
2018-03-08 15:47:48 +00:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
-webkit-transform: translateX(100%);
|
|
|
|
transform: translateX(100%);
|
|
|
|
stroke-width: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sprite {
|
2020-09-03 14:21:16 +03:00
|
|
|
opacity:0%;
|
2018-03-08 15:47:48 +00:00
|
|
|
-webkit-animation-name: shimmer;
|
|
|
|
animation-name: shimmer;
|
2020-09-03 14:21:16 +03:00
|
|
|
animation-delay: 1s;
|
2018-03-08 15:47:48 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
`;
|
2021-03-26 00:43:43 +05:30
|
|
|
|
|
|
|
export default styles;
|