Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

104
Views
How to enlarge one photo on hover in photo gallery and reduce size of other images in the gallery so that the enlarged one takes up their space?

I'm using wordpress with elementor pro plugin. I'm new to programming so my question is : Let say I would like to have gallery 4 (columns) x 20 (rows) of images. When I hover an image with mouse, I need the picture to enalrge and take space of for example 2 or 3 images next to it and below it/above it in the gallery. The other images in the column needs to reduce their size when the cursor is on enlarged photo. I want to achieve this effect on every photo in gallery when it is hovered. Is it possible to do this only with CSS or do I have to use JavaScript.

Sorry for the long question.

I would really appreciate your answer, Thanks in advance :)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Hey it is simple as you can do it directly in css using the

:hover and can specify the increased width in it for that image whereas you can set other images

width:auto

By doing this the other images will shrink as one image enlarges on hover.

Hope It Helps!!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!