Zoom effect keeping dimensions.
Hi, Im trying to make a zoom effect on my img without breaking the card dimensions..
As you can see, https://github.com/leokim92/PreEntrega3-kim, in my index.html I have "galeria-container" class and with transition and hover I managed to create some kind of zoom, but with that zoom the image container is also growing..
I want to make a zoom effect inside the container.. Thanks for your time!
11 Replies
Please, let me know if you need any more info..
You want to wrap those images in a div and give that div overflow of hidden
end result would be something like this
Thank you! Ill try this when I get home
it wroked. thank you so much
worked**
overflow-hidden px-0 and img-fluid are boostrap codes, right?
yup
the first row of img maintained the size of the container, but the others img broke, and some img are bigger than others..
ill push the code to gitbut and share with you.. guide me please if you have time....
"I applied the codes to all my img and that made another problem"....
github still has the old code 🙂
oka, I just pushed with the new codes..
https://github.com/leokim92/PF-Kim/settings/pages
please, let me know if you need any more info
change height: auto to height: 100% on the
main .imagenGaleria
you might also add object-fit: cover on itill try, thanks
Wow.. you are awesome
Can you teach me ?
teach you what? I learned most of this from Kevin's videos 🙂
I should practice more
Thank you again,