javascript - Correct way to detect scroll height and animate elements based on scroll height with React (Example included.) -


as can see here page freehand invision has number of elements linked scroll actions of user.

a more narrow example, headers move horizontally based on scroll height, what's best practice achieving effect in react? want avoid bad practices , impacting performance.

i looking avoid jquery.

thank in advance!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -