reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Scroll down to change navbar, scroll up to change it back.

Open egonsung opened this issue 1 year ago β€’ 4 comments

A basic way to change the style of the top navbar as you scroll up and down. Example

Wondering if there is a built-in way to do it in Reflex. If not, what other options do I have?

Thanks a bunch.

egonsung avatar Jul 22 '24 06:07 egonsung

You can embed a JS script to do this but it's not idiomatic.

adhami3310 avatar Jul 24 '24 23:07 adhami3310

You can try to use this component: https://github.com/masenf/reflex-intersection-observer

It can trigger an event handler once a component scrolls into view

picklelo avatar Jul 25 '24 18:07 picklelo

You can try to use this component: https://github.com/masenf/reflex-intersection-observer

It can trigger an event handler once a component scrolls into view

This works well, thank you.

egonsung avatar Aug 07 '24 03:08 egonsung

You can try to use this component: https://github.com/masenf/reflex-intersection-observer

It can trigger an event handler once a component scrolls into view

This has stopped working in the new reflex update. Any idea how it can be fixed, or any alternatives? Thank you.

egonsung avatar Dec 12 '24 04:12 egonsung

You can try to use this component: https://github.com/masenf/reflex-intersection-observer It can trigger an event handler once a component scrolls into view

This has stopped working in the new reflex update. Any idea how it can be fixed, or any alternatives? Thank you.

We're going to publish 0.0.5 of reflex-intersection-observer Can you try and see if it resolve your issue? If it doesn't, please provide more details on your usecase.

Lendemor avatar Dec 17 '24 20:12 Lendemor

You can try to use this component: https://github.com/masenf/reflex-intersection-observer It can trigger an event handler once a component scrolls into view

This has stopped working in the new reflex update. Any idea how it can be fixed, or any alternatives? Thank you.

We're going to publish 0.0.5 of reflex-intersection-observer Can you try and see if it resolve your issue? If it doesn't, please provide more details on your usecase.

We've changed the layout and no longer use this feature. Sorry about that, will let you know if we decide to use this again. Thank you.

egonsung avatar Jan 21 '25 07:01 egonsung