Jump to content

jQuery Image Pin plugin


x1nick

Recommended Posts

It's easy enough.

 

For your image, you'll want to have it wrapped with a container that has relative positioning (or have the image be a background image)

 

Then you can listen for click inside that area.

 

Then look into the jquery function offset().  It takes the offset of that element, so you could find out what the coordinates are.

 

At that point you could just insert dom elements with absolute positioning based off that coordinate.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.