I found a cool idea for creating a Facebook-like cover image on this community. Check out this jsfiddle that I stumbled upon.
.cover { width: 100%; height: 180px; overflow: hidden; background-color: black; }
.cover > img { position: relative; width: 100%; top: 50%; margin-top: -50%; }
However, I encountered an issue with the responsive design. The cover image adjusts itself differently in desktop mode compared to smaller device modes. For example, in desktop mode, the driver's head in the bicycle image is cut off, but in smaller device modes, it is fully visible.
Question:
How can I create a consistent and responsive cover image similar to Facebook's layout?
P.S: Keep in mind that users should be able to adjust the viewpoint of the cover image, just like on Facebook!