56 lines
No EOL
1 KiB
CSS
56 lines
No EOL
1 KiB
CSS
@keyframes faireTournerImage {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
#image-collegue-animee {
|
|
width: auto;
|
|
height: auto;
|
|
animation: faireTournerImage 2s linear forwards infinite;
|
|
z-index: 1;
|
|
}
|
|
|
|
.div-centrer-contenu{
|
|
width: 100%;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
|
|
|
|
/* Define keyframes for the confetti */
|
|
@keyframes confettiFall {
|
|
0% {
|
|
transform: translateY(-100px) rotate(0deg);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform: translateY(100vh) rotate(720deg);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Confetti styles */
|
|
.confetti {
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 20px;
|
|
animation: confettiFall 5s linear;
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Confetti container to spawn confetti randomly */
|
|
.confetti-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
pointer-events: none; /* Prevent interaction */
|
|
} |