Divi Background Image Zoom on Hover

Divi Background Image Zoom on Hover

Green Tree Media

4 года назад

11,597 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Stian Thomassen
Stian Thomassen - 10.11.2023 16:03

Thank you!

Ответить
Daniel Dumond
Daniel Dumond - 03.05.2023 17:50

This is great, BUT it's not very responsive. The problem with "background-size: 100%" is that it performs more like "contain" rather than "cover", so on wider or narrower screens, if the aspect ratio does not match its container, you will end up with gaps either on the top or sides. Is there a solution to this? If only "background-size: calc(cover + 10%)" was recognized! 😄

Ответить
Scott Allen
Scott Allen - 26.08.2021 21:08

Why isn't this working for me? When I put the css in for desktop, everything is fine. But when I switch to "hover," and change the css, it changes the "desktop" css as well.

Ответить
Max W. Homuth
Max W. Homuth - 17.07.2021 01:54

Damn, this is sweet. Thanks to the Custom CSS I was able to align the ackgound perfectly to the position I want it to have (background-position-y or -x). Love the simplicity and complex possibilities at the same time!!!

Ответить
TheBomber
TheBomber - 19.10.2020 01:49

When I try to add this code, somehow the "cover" setting won't apply automatically anymore. The image shrinks down to its actual size and orientation and it is not more filling out the whole background. What could I do here?

Ответить
DobbelH
DobbelH - 24.09.2020 15:13

Great tip. I wonder though, how can you apply the same effect on load, not hoover? I want the transition to happen automatically when the image enters the viewport. Please help!

Ответить
Darío Domínguez
Darío Domínguez - 30.08.2020 18:33

Thank you!

Ответить
Advance Pro Web Design & Business Network
Advance Pro Web Design & Business Network - 25.06.2020 21:47

Awesome video thank you! Would this same thing work with the image Divi gallery as well just out of curiosity?

Ответить
game 47
game 47 - 20.06.2020 01:23

Hello, not work for me

Ответить
fuzzyford
fuzzyford - 11.06.2020 13:46

this is great! is there any way to ease out smoothly? My BG images just clunk back to normal size when I stop hovering…

Ответить
LANG
LANG - 25.05.2020 10:13

background-size: 100%;
transition: all 0.5s ease;

Ответить
Elvek Djv
Elvek Djv - 08.05.2020 15:03

Thanks, it works perfect! But i'm trying to figure out how to zoom on a certain part of the background (bottom for instance), is this possible?

Ответить
David Lefaix
David Lefaix - 06.05.2020 15:36

Thank you very much for this video. and if i want to zoom with Parallaxe ??? how to do?

Ответить
feisar2
feisar2 - 02.04.2020 19:12

Hi! How to make the animation smooth? without that shivering movement?

Ответить
nang2000
nang2000 - 13.03.2020 02:45

Im surprised more people had not viewed this vid. Thanks so much.

Ответить
Simon Bennett
Simon Bennett - 12.03.2020 17:30

That saved my life. Cheers Buddy!

Ответить
Urho Rättel
Urho Rättel - 06.03.2020 12:17

Thanks!
How I like short and constructive tutorials.

Ответить
sal virji
sal virji - 14.02.2020 19:15

Thanks for the tutorial. can the code be used on the Divi gallery module separately for each image?
tried using the Divi hover option, but that scales the entire gallery at once.
thanks.

Ответить
Estu Glx
Estu Glx - 29.01.2020 04:59

So nice, thank you!

Ответить
Montana Mule
Montana Mule - 28.01.2020 20:22

thanks for this! How do you prevent, on hover, the images from transitioning outside the row? When I mouse-over, the effect works, but the image size also gets larger

Ответить