Parallax Grid Scroll
A grid where two columns scroll in oposite directions, giving a parallax effect.
I'm a fan of parallax effects (if done correctly) and you should be too. :)
For a container div
, i.e. if you have a scrolling div, we are going to use the useScroll()
from framer-motion
with a gridRef
ref in order to track the scroll.