Section animated slides on scroll

Hi everyone, first time posting here :slight_smile:

I came across this website https://fantasy.co/ and I would like to replicate this animation on scroll.
Is there a way to achieve this ?

Thank you for your time !