This is more of a "how do they do this" question than a need for a specific solution.
I've visited a few sites that have an elegant and natural-appearing easing on page elements which react to page scrolling (to initiate) but also continue after the scrolling stops (allowing the elements to ease into a stopping point).
Having looked up various searches for combinations of "parallax," "scrolling," "easing," etc., I can't find a starting point for how to achieve a similar experience.
Examples of this interactivity
- Seen in the photo in the first "Pizzeria Mozza is known for its California ingredients..." section as well as the cards for "Bar Special" and "Red Sauce Dinner" further down the page (as of 10/3/2020).
https://droitthemes.com/wp/oppi-one-page/
- Seen in the hero banner's device image and the screenshot/UI images in the "It's the food you love, delivered" section (along with other elements on the page)
In both sites, it appears that the elements have a dynamically changing transform: translate3d
style that is directly reactive to page scrolling. But, how that gets implemented & applied... I don't know.
I've tried looking up similar components used in each site (via BuiltWith.com), but that didn't reveal anything helpful (to me).
Any insight is appreciated.