Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
CSS version, but with calc() and vw units - just calculate the negative margin of the video block:
https://codepen.io/abnmt/pen/gEvLmb
You also need to take into account the width of the Scrollbar...
Container-fluid to the parent, and set the right/left content to max-width (wrap the insides if necessary)
How did I get the video? Then you need js for shift or hover animation.
You can also do it with overflow hidden. It seems to me that all these decisions smack of a savkhoz, but a working savkhoz.
In the end, I would make one section be with a shift, and with hover there would be a shift to the active area. It is possible without js. You can do it initially in the middle for perfectcianism.
Are you sure that this is not the entire width of the page, in principle, and that there is some kind of "container" at the level where you drew the red lines?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question