@@Gunnar Bittersmann
Noch ergänzt: In Chromia braucht der Container noch tabindex="0"
, damit man den Tastaturfokus darauf setzen und mit Pfeiltasten scrollen kann.
Der Trick ist wohl,
scroll-snap-align
auf Kindelemente des Containers anzuwenden – in meinen Beispiel aufsection
.
Und damit kann man im Firefox mit [→] zwar vorwärts scrollen, mit [←] aber nicht mehr zurück. Vermutlich ein Bug.
😷 LLAP
--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon