animation rendu plus responsif pour s'assurer qu'une image ne soit jamais trop grand par rapport à .gallery-animation
All checks were successful
Deploy / Deploy to Production (push) Successful in 14s
All checks were successful
Deploy / Deploy to Production (push) Successful in 14s
This commit is contained in:
parent
c4eb79cb79
commit
c4456d587c
19 changed files with 430 additions and 21 deletions
50
test_anim__archive1/NOTES.md
Normal file
50
test_anim__archive1/NOTES.md
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Animation Galerie d'Images
|
||||
|
||||
## Fichiers
|
||||
|
||||
- `style.css` : CSS de l'animation (à intégrer dans le projet Kirby)
|
||||
- `index.html` : Page de test
|
||||
- `images/` : Images de test
|
||||
|
||||
## Usage
|
||||
|
||||
```html
|
||||
<div class="gallery-animation gallery-animation--vertical">
|
||||
<!-- ou gallery-animation--horizontal -->
|
||||
</div>
|
||||
```
|
||||
|
||||
### Variables CSS
|
||||
|
||||
```css
|
||||
.gallery-animation {
|
||||
--animation-duration: 30s; /* Durée de l'animation */
|
||||
--gap: 1rem; /* Espacement entre colonnes/rangées */
|
||||
}
|
||||
```
|
||||
|
||||
### Structure HTML
|
||||
|
||||
**Mode vertical** (3 colonnes) :
|
||||
```html
|
||||
<div class="gallery-animation gallery-animation--vertical">
|
||||
<div class="gallery-animation__wrapper">
|
||||
<div class="gallery-animation__column">
|
||||
<div class="gallery-animation__track">
|
||||
<img src="..." class="gallery-animation__image">
|
||||
<!-- images dupliquées pour boucle infinie -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- 2 autres colonnes -->
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
**Mode horizontal** (3 rangées) : remplacer `--vertical` par `--horizontal` et `__column` par `__row`.
|
||||
|
||||
## Comportement
|
||||
|
||||
- Colonnes impaires : défilent vers le bas / droite
|
||||
- Colonnes paires : défilent vers le haut / gauche
|
||||
- Images dupliquées dans le HTML pour transition fluide
|
||||
- Décalage automatique entre colonnes/rangées via `animation-delay`
|
||||
Loading…
Add table
Add a link
Reference in a new issue