<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.shimmer {
width: 200px;
height: 200px;
background: linear-gradient(-45deg, #00bcd4, #4caf50, #ffeb3b, #e91e63, #00bcd4);
background-size: 400% 400%;
animation: shimmerAnimation 7s infinite;
}
@keyframes shimmerAnimation {
0% {
background-position: 0% 0%;
}
50% {
background-position: 100% 100%;
}
100% {
background-position: 0% 0%;
}
}
</style>
</head>
<body>
<div class="shimmer"></div>
</body>
</html>
.label {
position: relative;
&:after {
content: '';
opacity: 0;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #fff;
animation: animate-shine 2s ease-out infinite;
}
}
@keyframes animate-shine {
0% {
opacity: .1;
width: 0;
}
50% {
opacity: .5;
}
100% {
opacity: 0;
width: 100%;
}
}