Jquery vegas plugin image resize within div elements

0 votes

I am using the jquery vegas plugin that re sizes the background images, yet I would like to learn how to resize the images contained within selected elements.

Example:

  • HTML <div class="bg1"></div>
  • CSS .bg1 {background-image: url(../img/bg1.jpg);}

What would be the java function to make the image scale to 100% width of the div bg1, bg2, etc. and have the overlay pattern enabled too.

Thanks for any help.

Regs Fab

Aug 4, 2022 in Web Development by gaurav
• 23,260 points

edited 5 days ago 6 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP