When you create an XD design, sometimes an artboard is not long enough to fit your content. By making an artboard longer and choosing options based on your design needs, you can vertically scroll an artboard to accommodate different device sizes.
Vertical scrolling helps you simulate scroll effects when designing scrollable drop-down lists or websites, however, horizontal scrolling is not supported in XD.
In the Design mode, select the following options in the Property Inspector:
- Scrolling: Select Vertical or None.
- Fix position when scrolling: Select to pin the elements to a fixed position to avoid scrolling with the content.
- Viewport Height: Specify the viewport height through which you can view the artboard.
In the Prototype mode, select the following options in the Property Inspector:
- Preserve scroll position: Transitions to the next artboard while maintaining the position from the previous artboard. Check out this Twitter post for more details.
- Fix position when scrolling: Pins the design elements to a fixed position to avoid scrolling with the content.
Want to work with preset artboards to create a vertical scrollable drop-down list?
- Use the Select tool to click the artboard name or drag across artboards. You can also click an artboard name in the Layers panel to select it in the Document window.
- To make the selected artboard longer, drag the bottom point of the artboard down. A dotted line indicates the original height of the artboard.
- To preview scrolling on an artboard, you can preview directly in XD using the Desktop Preview option.
Do download the sample files and try them yourself or watch this video for more information.
Viewing time: 1 minute.
You can also check out the XD community for more such tutorials and sample files.
Scroll groups allow you to prototype a window of content that can be scrolled horizontally, vertically, or in both the directions.
"Sticky headers and other fixed elements are like signs on a highway — way finders to ensure we're continuing to provide relevant information to a corresponding section or aiding customers along their journey via calls to action." Says Oliver Lindberg. Check out the blog on best practices for designing sticky headers and other fixed elements.