Answer the question
In order to leave comments, you need to log in
Is there a FishEye style gallery in jQuery?
Found something similar . I looked at the code: we took a horizontal menu as the basis , copy-pasted 6 times and made a gallery. Has anyone experienced something similar, thanks.
Answer the question
In order to leave comments, you need to log in
- Well, by hover you mark the picture as current.
Then on the mouse move:
- take the index of the current
one - knowing the index and any sizes - calculate the index of its environment.
Then 2 options:
a) if necessary, as in the GIF, then just make the current scale large, and the rest smaller.
b) if so, as in the example:
calculate the percentage of the cursor offset relative to the center of the current image
, apply the proportional scale
Ta to the matrix, and pull the jakver for the sake of a couple of syntax abbreviations, it’s not really worth it here, not to mention looking for the whole plugin.
UPD: closed up an example with a head-on solution jsfiddle.net/itspers/KYVdh/4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question