Check this out in Chrome 115+ / Chrome Canary

All-new CSS Pro

Dynamic call-to-action powered by container queries and scroll-driven animations.

Define transition sequences using style queries. Then toggle them with scroll-driven animations. Resulting in scroll-triggered animations.

Become aCSS Pro

fin.