Animations custom (video/GIF) + selection aleatoire

- Upload de GIF/MP4/WebM comme animations de compte a rebours
- Checkboxes pour activer/desactiver chaque animation (CSS + custom)
- Si plusieurs actives, tirage aleatoire a chaque photo
- Preview dans le backoffice avec tirage aleatoire
- Suppression des animations custom importees
- Les animations custom se jouent en plein ecran avant la capture

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-21 23:29:02 +01:00
parent a525f72800
commit cbe514bb93
7 changed files with 342 additions and 56 deletions

View File

@@ -888,6 +888,66 @@ h3 {
align-items: center;
justify-content: center;
margin: 1rem 0;
position: relative;
overflow: hidden;
}
.preview-anim-video {
width: 100%;
height: 100%;
object-fit: contain;
}
/* Overlay video plein ecran pendant capture */
.video-countdown-overlay {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: #000;
z-index: 50;
display: flex;
align-items: center;
justify-content: center;
}
.video-countdown-overlay video,
.video-countdown-overlay img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
/* Animation item avec checkbox */
.anim-item {
display: flex;
align-items: center;
gap: 0.8rem;
padding: 0.6rem 1rem;
background: var(--fond);
border-radius: 8px;
}
.anim-item input[type="checkbox"] {
width: 20px;
height: 20px;
accent-color: var(--primaire);
}
.anim-item-preview {
width: 50px;
height: 50px;
border-radius: 6px;
object-fit: cover;
background: #000;
}
.anim-item .btn-supprimer {
margin-left: auto;
background: none;
border: none;
color: var(--danger);
font-size: 1.2rem;
cursor: pointer;
}
.anim-chiffre {