O
O
other_letter2015-05-19 12:01:58
JavaScript
other_letter, 2015-05-19 12:01:58

How to make an enlarged image?

Now I use the design: Everything works. Not satisfied with the fact that the picture increases down and to the right. That is, I have the original picture in the middle, but closer to the right side. The enlarged one turns out lower and to the right, which, at some sizes, sometimes displays part of the picture off the screen. How to do otherwise?
1l.jpg
1.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Sanych, 2015-05-19
@other_letter

they wrote something so incomprehensible. Here is jsfiddle.net/oav64mje

A
Andrey Fedorov, 2015-05-19
@aliencash

Why js is here is not at all clear.
css has a :hover pseudo-class, you can put any styles on it and enlarge the image as you like, including animated ones.
codepen.io/aliencash/pen/eNzPKy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question