AristideBH / Marqueeck

Marqueeck is a full-featured marquee component for Svelte, flexilble, style-free & highly customizable
https://marqueeck.vercel.app
17 stars 0 forks source link

regarding the purpose of the `iframe` element #4

Closed arlenpeiffer closed 1 month ago

arlenpeiffer commented 1 month ago

hey @AristideBH — super cool project! really digging it

had a quick question.. what's the purpose of the <iframe> element that appears just below the element with data-marqueeck-ribbon?

Screenshot 2024-07-21 at 4 42 23 PM
AristideBH commented 1 month ago

Hi, thanks for your support ! From memory, that's how Sveltekit keeps track of the width of the marquee, using the bind:offsetWidth proprety. This is used to repeat the right number of elements to fill the marquee !

arlenpeiffer commented 1 month ago

aha! that makes sense — did some digging in the svelte docs and found the bit about advanced bindings for dimensions. super cool.

thanks so much for the heads up on this and again, great work on the project! i'll go ahead and close out this issue :)