I’m not sure if this can be done in CSS, but these pics should illustrate what I’m talking about:
I’m not sure if this can be done in CSS, but these pics should illustrate what I’m talking about:
Is that in css? You can inspect element and check out if it’s css or js or something else (and you can probably access the css and see how it’s done).
The only thing I can think of is the CSS 3D Transform properties
https://www.w3schools.com/css/css3_3dtransforms.asp
And maybe using perspective? https://www.w3schools.com/cssref/css3_pr_perspective.asp