Yes, I would think about it using jQuery. There are many response scripts that do what I think you are trying to accomplish. Try Zoomooz.js. You can find it on the Github website or authors.
anne.aukia.com/zoomooz/ github.com/jaukia/zoomooz/zipball/master
Hope this helps.
m33bo source share