Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

justindantzer
Copy link

A simple lens effect option, similar to other image zoom plugins, and can be enabled/disabled with a passed option.

css/easyzoom.css Outdated
cursor: pointer;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
Copy link
Owner

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

@i-like-robots
Copy link
Owner

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.

@justindantzer
Copy link
Author

@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;
Copy link
Owner

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

justindantzer and others added 3 commits September 3, 2015 22:39
Changed notice from using .text() to .html() and minor edits to default's comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants