开发者

using jQuery, is it possible to create a google maps style zoom of a collection of divs?

开发者 https://www.devze.com 2023-03-18 16:51 出处:网络
I\'m creati开发者_StackOverflow社区ng a page which has a series of div tags with background colours (it needs to be div tags as it\'s coming from a database), to which I want to add a zoom from jQuery

I'm creati开发者_StackOverflow社区ng a page which has a series of div tags with background colours (it needs to be div tags as it's coming from a database), to which I want to add a zoom from jQuery. Is this possible? All of the zoom plugins require an image to work, and if I zoom each individual div I lose the center point of where I want to zoom in to.

Cheers


You have to calculate how much the divs will grow or shrink after moving the zoom slider and apply the results to the divs like here: resize div zoom in zoom out using pure javascript or jquery

The size of the div must be calculated for every div-tag you want to zoom.

If the font should be resized you have to compute the font size, too.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号