Below are examples using plain JavaScript and CSS to implement some scroll effects. Though in real applications you will likely be better off using something like Framer Motion or React Spring.