-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lens hover effect to target #68
base: master
Are you sure you want to change the base?
Conversation
css/easyzoom.css
Outdated
cursor: pointer; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't worry about the prefixes these days http://caniuse.com/#search=box-sizing
Thanks for taking the time to add this feature @justindantzer This is something I've actively avoided implementing - because when using the zoom as the original overlay it makes no sense - but it has been requested a few times now. Pleased to see you've added it behind an option flag and off by default too. Could you please run the JSHint Grunt task over this and amend the commit with any changes required? Thanks again. |
@i-like-robots I'm happy to contribute. JSHint completed without errors, lint free. |
css/easyzoom.css
Outdated
.easyzoom-lens { | ||
position: absolute; | ||
top: 0; | ||
left: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The top
and left
properties can be removed as they're specified in the JS anyway
Changed notice from using .text() to .html() and minor edits to default's comments
A simple lens effect option, similar to other image zoom plugins, and can be enabled/disabled with a passed option.