49 lines
799 B
CSS
49 lines
799 B
CSS
.floatingContainer {
|
|
position: relative;
|
|
display: inline-block;
|
|
height: 150px;
|
|
}
|
|
|
|
.floatingPresent {
|
|
position: relative;
|
|
z-index: 2;
|
|
animation: float 3s ease-in-out infinite;
|
|
}
|
|
|
|
.floatingShadow {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 50%;
|
|
width: 80px;
|
|
height: 20px;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
border-radius: 50%;
|
|
filter: blur(6px);
|
|
z-index: 1;
|
|
transform-origin: center;
|
|
transform: translateX(-50%);
|
|
animation: shadowPulse 3s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
50% {
|
|
transform: translateY(-15px);
|
|
}
|
|
}
|
|
|
|
@keyframes shadowPulse {
|
|
0%,
|
|
100% {
|
|
transform: translateX(-50%) scale(1);
|
|
opacity: 0.3;
|
|
}
|
|
50% {
|
|
transform: translateX(-50%) scale(0.6);
|
|
opacity: 0.15;
|
|
}
|
|
}
|