Design Stufe 2: Tipp-Karten zum Umdrehen, Sommer/Winter-Vergleich, Galerie mit weichem Vergroessern
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m45s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m45s
- Baustein "Ausflugstipps" (tips): Karten mit Foto vorne, Tipp/Weg/beste Zeit hinten; Seebad als Ansichtskarten - Baustein "Sommer/Winter-Vergleich" (compare): Trennlinie ziehen, Tastatur ueber Range-Input, einmaliger Hinweis-Schwenk - Lightbox: Foto waechst aus der Vorschau, Blaettern (Pfeile, Tasten, Wischen), Zaehler, Bildunterschrift; partials/lightbox - Bewegung reduzieren: Ueberblenden statt Drehen, kein Schwenk, keine Zoom-Animation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c8bb0f6e97
commit
4c9e6992f4
20 files changed
+785
-43
No files matched your search
@@ -120,6 +120,104 @@ @layer components {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Cards to turn over (sections/tips). Without JavaScript both faces stand one below the other; theme.js sets
|
||||
* data-flip="ready", stacks the faces in one grid cell (the card takes the height of the taller face) and toggles
|
||||
* data-flipped. With "reduce motion" the faces cross-fade instead of turning.
|
||||
*/
|
||||
[data-flip='ready'] {
|
||||
perspective: 1800px;
|
||||
}
|
||||
|
||||
[data-flip='ready'] > [data-flip-inner] {
|
||||
display: grid;
|
||||
height: 100%;
|
||||
transform-style: preserve-3d;
|
||||
transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);
|
||||
}
|
||||
|
||||
[data-flip='ready'] [data-flip-face] {
|
||||
grid-area: 1 / 1;
|
||||
backface-visibility: hidden;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
|
||||
[data-flip='ready'] [data-flip-face='back'] {
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
[data-flip='ready'][data-flipped] > [data-flip-inner] {
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
[data-flip='ready'] > [data-flip-inner],
|
||||
[data-flip='ready'][data-flipped] > [data-flip-inner],
|
||||
[data-flip='ready'] [data-flip-face='back'] {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
[data-flip='ready'] [data-flip-face] {
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
[data-flip='ready'] [data-flip-face='back'],
|
||||
[data-flip='ready'][data-flipped] [data-flip-face='front'] {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
[data-flip='ready'][data-flipped] [data-flip-face='back'] {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Two photos with a dividing line (sections/compare): --split is the share of the first photo. theme.js moves it by
|
||||
* dragging or tapping; the visually hidden range input does the same by keyboard and screen reader.
|
||||
*/
|
||||
[data-compare] {
|
||||
--split: 50%;
|
||||
position: relative;
|
||||
touch-action: pan-y;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
[data-compare] img {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
[data-compare-first] {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
clip-path: inset(0 calc(100% - var(--split)) 0 0);
|
||||
}
|
||||
|
||||
[data-compare-handle] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: var(--split);
|
||||
translate: -50% 0;
|
||||
}
|
||||
|
||||
[data-compare]:has(input:focus-visible) [data-compare-handle] {
|
||||
outline: 3px solid var(--accent);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
/* Lightbox (layout dialog#lightbox): the backdrop fades; the photo's way out of the gallery is animated in theme.js. */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
#lightbox[open]::backdrop {
|
||||
animation: lightbox-fade 0.35s ease-out;
|
||||
}
|
||||
|
||||
@keyframes lightbox-fade {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Gentle reveal while scrolling – only where supported and only without "reduce motion". */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
@supports (animation-timeline: view()) {
|
||||
|
||||
Reference in new issue
Block a user