Fritz.StreamTools icon indicating copy to clipboard operation
Fritz.StreamTools copied to clipboard

Convert GitHub Contributors scroller to a WebComponent

Open csharpfritz opened this issue 7 years ago • 2 comments

/* Suggested by @bravecobra */

csharpfritz avatar May 19 '18 16:05 csharpfritz

Since I was the one suggesting this, I've created a little codepen to demonstrate what could be an implementation of the existing marquee as a web-component.

https://codepen.io/bravecobra/pen/odmxYV

You can do some customization from outside the component, like colors, size and speed, which should then come from the configuration page. I kept the example simple enough to allow for easy integration into the current code. At least, it's a start!

bravecobra avatar May 20 '18 13:05 bravecobra

I've included the cdn version of webcomponentsjs. That makes the codepen work on firefox as well. Let me know if you want this to be included in the current marquee code and whether you prefer the cdn inclusion or a local npm install, which would put that code in the js bundle. There is of course always the option of abandoning this idea all together.

bravecobra avatar Jun 03 '18 11:06 bravecobra