Some Examples » 19. Scroll and Page combined
19. Scroll and Page combined
By enabling directionLock
on both the scroll and page components, only one of them will move at a time.
Code component
Pro tip: When using the <Page>
component in a React project (like in the CodeSandbox above), set the box-sizing
of all elements to border-box
. Like this, for instance:
<Page>
box-sizing
, CSS universal selector (*
)
Code override
You only need the page and scroll tools to recreate this on the canvas. No code needed! (directionLock
is called ‘Lock’ in the properties panel.)