Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder slappyjaw's Avatar
    Join Date
    Mar 2009
    Location
    Wonderland!
    Posts
    146
    Thanks
    14
    Thanked 3 Times in 3 Posts

    Question jquery spyglass effect

    Hey guys. This has been bugging me forever and i cant seem to find a working way to do this. Does anyone happen to know how to make a spyglass like effect in jquery. What i mean by spy glass is that the background of a div would be black, and there would be another movable div within the black one. When you move it around it reveals whats under the black. What i am exactly looking for is done on jcrop. when you select the part that you want to crop, the box created shows the image, while there is still a semi transparent background around it. Hope i made some sense, any help is majorly appreciated!

  • #2
    Regular Coder slappyjaw's Avatar
    Join Date
    Mar 2009
    Location
    Wonderland!
    Posts
    146
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Ok so this is my first attempt. http://www.slappyjaw.com/test.html. But the problem is is that it seems to lag kind of. Any ideas of how to fix that. What it does is it uses the left and top values of the selector box and then changes the background position of the selector box to those coordinates.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •