Anime le passage d'un article entre la liste et le panier

Le basculement passe par une View Transition : chaque tuile porte un
view-transition-name, la tuile glisse vers sa nouvelle place et les
autres se décalent. Sans support navigateur, rien ne change.

Closes #1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Romulus21andClaude Opus 5.5 committed 2026-11-01 15:54:23 +01:00
1 parent 6c593b0201
commit 9aa81a22fe
6 files changed
+83 -4

No files matched your search

+18
View File
@@ -55,3 +55,21 @@
html {
-webkit-tap-highlight-color: transparent;
}
/* Tiles moving between the list and the basket (see src/app/transition.rs). */
::view-transition-group(*) {
animation-duration: 320ms;
animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
::view-transition-old(*),
::view-transition-new(*) {
animation-duration: 200ms;
}
@media (prefers-reduced-motion: reduce) {
::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
animation: none;
}
}