3

I'm trying to do this grid of images. If I click one of them, I want to scale everything and focus on the one I just clicked.

Here is the testing code: http://jsfiddle.net/7PzGQ/7/

Thanks!

2
  • Tried to play with it, can't figure it out.. But, you can get the offset of the clicked image with $( this ).offset().top or $( this ).offset().left Commented Apr 8, 2011 at 23:04
  • Yeah, I was playing with that, but I've no idea what math will do what I want to do. I suck at this. Commented Apr 8, 2011 at 23:28

1 Answer 1

2

Simple math probleme, check out this : http://jsfiddle.net/DoubleYo/7PzGQ/87/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.