kindoflew / svelte-parallax

a (small) spring-based parallax component library for Svelte
MIT License
145 stars 5 forks source link

Support rest props #20

Closed nathancahill closed 2 years ago

nathancahill commented 2 years ago

Since we're creating a <div> for each of the components, it's handy to be able to pass arbitrary props to the underlying element.

Also adds a semi-colon to the style tag, since style=";;;width:100%;" is valid CSS.

kindoflew commented 2 years ago

Hey, thanks for the contribution! This is a great idea and makes much more sense than what I have now.