sveltejs / svelte-scroller

A <Scroller> component for Svelte apps
https://svelte.dev/repl/76846b7ae27b3a21becb64ffd6e9d4a6
Other
347 stars 25 forks source link

Added option to specify foreground z index #18

Open alvinometric opened 1 year ago

alvinometric commented 1 year ago

Hello,

By default, parent container of the foreground element has a z index of 2, which makes sense. But on mobile, it can be helpful for the background element to be on top of the foreground element.

This PR lets you specify the foreground z index as a property