dollarshaveclub / stickybits

Stickybits is a lightweight alternative to `position: sticky` polyfills 🍬
https://github.com/yowainwright/stickybits
MIT License
2.19k stars 167 forks source link

How to use it in Hype #594

Closed alexlii1971 closed 4 years ago

alexlii1971 commented 4 years ago

Hello,

Sorry for put this request under issue tab since I did not find other place, and please close it if you think this make you confused.

I am frontend UI designer, and I use Hype https://tumult.com/ for web page and Animation design.

We usually use external JS/Css resource/library referenced in Hype:

1572061078732

and it also support assigning CSS class and Html atrributes to any elements:

download (1)

I tried as above, but it seems not work, and I just suppose it might need some custom javascript to work as stickybits('selector');

In Hype, it support to run a custom javacript to achieve specific feature:

Unknown-2

**I am trying to make this style working in Hype:

https://codepen.io/yowainwright/pen/EGvjYg**

It would be great appreciated if you could help with a custom javascript to support it or any other suggestions to make stickybits work in Hype.

Here is Hype API for your reference: https://tumult.com/hype/documentation/#api-functions

Thanks in advance, and have a nice day.

yowainwright commented 4 years ago

Sorry, this is not an Hype project. The maintainers of this project can’t help you with Hype. ~Thanks!