How do you put an image in a container so that it stays in place as the width and height increase?
-
Good day! You need to implement such a slider https://drive.google.com/file/d/1vQy5BA_RY1u4EITYK .. .
At the moment, the problem is that I cannot properly center and / or create a container for the image. So that when you enlarge the container, the image remains as it was before the enlargement and in the same place.
UPD: I also need to be able to have hidden elements out of sight. And the block itself was adaptive. Something like this, only responsive https://jsfiddle.net/pjL0xaum/48/JavaScript Anonymous, Jan 24, 2019 -
You can do it like this https://codepen.io/leshiple/pen/wvWwQMN?editors=1100 a>Anonymous
-
SoAnonymous
-
Why resize the image, you can just crop it.
Anonymous
3 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!