How do I clip an image in jQuery without a plugin? I want to create a 360 image rotator by placing all of the images in a single image and then have jQuery navigate to the correct X,Y coordinates in that master image and display the correct clip of the image in a div
.
Asked
Active
Viewed 1,620 times
3

bakkal
- 54,350
- 12
- 131
- 107

Payton Byrd
- 956
- 1
- 12
- 27
-
1Why not take advantage of the freely available work others have already done? Is there something about a plugin that bothers you? – Ken Redler Aug 13 '10 at 17:46
-
I can't find a plugin that doesn't have the GPL attached to it. – Payton Byrd Aug 13 '10 at 17:56
1 Answers
1
Set the large image as the background of your fixed-size div through CSS and then use jQuery to manipulate the background-position values.

scronide
- 12,012
- 3
- 28
- 33