How to display part of an image using jquery?

I am using jquery and I am trying to display part of the image, say, the square in the middle, and then use the animation to pull out the rest.

I think something involving a div, with overflow: hidden, but I can't figure it out.

Many thanks.

+3
source share
4 answers

The imgAreaSelect plugin opens , it does it for sure.

+3
source

, image spriting, CSS. alistapart. css .

, , jquery, - automgaically...

+1

- css sprite map, css . jquery, css , .

css sprite maps. http://css-tricks.com/css-sprites/

+1

css: position, div div css

0

Source: https://habr.com/ru/post/1715543/


All Articles