withScrollToggledVariant causes a smart component to switch variants when you scroll past a position. You can do the same thing without code using an appear effect.

Scroll