A
A
Azim Kurt2014-02-23 22:34:10
JavaScript
Azim Kurt, 2014-02-23 22:34:10

Is there a FishEye style gallery in jQuery?

image.png
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

2 answer(s)
I
itspers, 2014-02-24
@Symphony

- 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

R
Ruslan, 2014-02-23
@rOOse

dumb GIFs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question