Scale the parts inside the div and focus it. (jQuery and CSS)

I am working on a configurator - say a bike config

  • I need to display images for each part of the bike inside a div, with all of them connected correctly so that it looks like a bike to the end user.

  • Now, when the end user wants to change a part (like a steering wheel or a seat), he clicks on it. After click, that will be enlarged and displayed in this div along some part that is attached to it.

That's where the problem lies: when I click a part, I use the CSS Zoom property to zoom in on the part. But since the div size is fixed with the overflow hidden, sometimes the part is hidden. But I want this part to be shown somewhat in the center of the div.

Please help if you can provide some alternatives or any idea to achieve it.

Thanks in advance.

+3
javascript jquery html css css3


source to share


No one has answered this question yet

Check out similar questions:

1452
Creating a div element in jQuery
1338
How to vertically align an image inside a div
920
Use jQuery to hide DIV when user clicks on it
919
Maintain div aspect ratio with CSS
917
How can I replace innerHTML div with jQuery?
876
Selecting and manipulating CSS pseudo-elements like :: before and :: after using jQuery
754
CSS center text (horizontally and vertically) inside a div block
737
Using jQuery to center a DIV on the screen
702
How do you easily horizontally center <div> s with CSS?
523
Vertically centering a div inside another div



All Articles
Loading...
X
Show
Funny
Dev
Pics