Skip to content CSS Components Web Components
Card 1 Card 2 Card 3 Card 4
Snap scroll
Card 1
Card 2
Card 3
Card 4
Card 5
Card 6
Card 7
Card 8
UX/UI Guidelines
Check the design documentation of the component in ZeroHeight.
Implementations
The component SnapScroll
is available in the following technologies:
Parameters
Parameters
Make sure you have read about the parameters in here.
The parametrization of the component can be done with the following custom params or properties:
Name | Type | Slot | Description |
---|---|---|---|
config | string | Whether the snap scroll should be vertical. | |
custom | object | A record of key-value pairs to set the CSS custom tokens. It's a complex attribute set as an JS object in stringified JSON format. Example: html
Check the available values in the customization section. | |
custom-str | string | The stringified version of the Example: html
| |
z-theme | string | Sets the theme of the component. The possible values are html
|
From Figma to code
...
Customization
INFO
Check everything about the customization mechanics in the "How it works" documentation.
CSS Variable | Type | Description |
---|---|---|
--z-snap-scroll--width | distance | |
--z-snap-scroll--gap | distance | |
--z-snap-scroll--padding | distance |
The width, the gap between inner elements, and the padding of the snap scroll can be customized using the --z-snap-scroll--width
, --z-snap-scroll--gap
, and --z-snap-scroll--padding
tokens.
Accessibility
...