"Zooming" elements on a page while keeping the centre of enlargement in the centre of the window
Posted
by Acorn
on Stack Overflow
See other posts from Stack Overflow
or by Acorn
Published on 2010-05-30T20:48:24Z
Indexed on
2010/05/30
20:52 UTC
Read the original article
Hit count: 152
I'm trying to work out how to enlarge all elements on a page, but keep the centre of enlargement in the centre of the window.
Example Page (up and down arrows to resize the image, you can also drag the image around)
On this page, once the image reaches the top or the left side of the window the centre of enlargement changes. It also changes when you move the image. (exactly what you would expect)
I'm thinking I'd need to take a completely different approach to achieve what I want. But I'm not sure what that approach is..
Any ideas?
© Stack Overflow or respective owner