Website/styles/Popsicle.module.css

62 lines
1.2 KiB
CSS

@keyframes pop {
0% {
scale: 0;
}
3% {
scale: 1.2;
}
4% {
scale: 1;
}
97% {
scale: 1;
}
98% {
scale: 1.2;
}
100% {
scale: 0;
}
}
@keyframes moveBackground {
from {
background-position-x: 0%;
} to {
background-position-x: 500%;
}
}
.rainbowBackground {
background-clip: background;
-webkit-background-clip: background;
background-color: transparent;
background-size: 500%, 100%;
animation: moveBackground 20s linear infinite;
padding: 10px;
border-radius: 10px;
opacity:.5;
}
.ownRainbow {
background-image: linear-gradient(-45deg, hsl(360, 100%, 60%) 10%, hsl(270, 100%, 60%), rgb(51, 139, 255) 50%, hsl(270, 100%, 60%) 70%, hsl(360, 100%, 60%) 100%);
}
.Popsicle {
background-color: #ffffff;
border-radius: 10px;
font-size: 12pt;
font-family: 'Manrope';
position: absolute;
display: block;
text-align: center;
animation-name: pop;
animation-duration: 10s;
animation-delay: 0s;
animation-fill-mode: forwards;
animation-timing-function: ease;
scale: 0;
z-index: 1000;
-webkit-box-shadow: 0px 0px 15px 10px rgba(0,0,0,0.10);
box-shadow: 0px 0px 15px 10px rgba(0,0,0,0.10);
}