The key property for the parallex effect itself is the perspective
set on the .parallax-wrapper
, in combination with the height
and object-fit: cover;
set on its containing img
element. The shadow is injected using ::after
⚠️ Doesn’t seem to work in Safari …