Anyone have a good jquery Image Preview plugin. Been looking but havent found anything good. The requirements are:
- Image appears on hover
- Image hover flips to avoid collision with sides of browser window
I have been using imgPreview but it doesn’t offer the collision. Any others?
Thanks!
You could continue using imgpreview and make use of the callback
onShow. This is detailed in the plugins documentation. The callback contains a reference to the container which you can then alter the CSS properties of to position.http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/
Set container to hidden and then position it yourself in the callback. From looking at examples the containers are absolutely positioned, so you just need to modify the top and left properties to get them on screen.
Is element visible on screen?