LineageOS[2] has a site with a decently readable source code. They also don't have exactly what you are looking for, but the <img> with id="rotate-on-scroll" (The spinning phones) and the related script[3] look like they could somewhat related -- you could probably change the transform in the script to accomplish what you're looking for.
[0] https://www.w3schools.com/w3css/
[1] https://www.w3schools.com/w3css/tryw3css_templates_parallax....
[3] view-source:https://lineageos.org/ (lines 1247-1263)