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

Adding a Zoom + Close icon #62

Open
vilav opened this issue Nov 8, 2015 · 5 comments
Open

Adding a Zoom + Close icon #62

vilav opened this issue Nov 8, 2015 · 5 comments

Comments

@vilav
Copy link

vilav commented Nov 8, 2015

Hi,

Neat plugin, Is there a way to add a (+) or zoom-in plugin to indicate to the user that the image can be zoomed / enlarged? Similarly what's the best way to add a close button in the enlarged view?

Thanks
Vilav

@vilav
Copy link
Author

vilav commented Nov 17, 2015

@fat any ideas on how to add this? Thanks!

@spinningarrow
Copy link

For indicating to the user that the image can be enlarged, do you not see the "zoom" mouse cursor when you hover over it? Or do you mean something more obvious (I suppose the cursor is no good on mobile for instance).

@spinningarrow
Copy link

If it's the latter, you should be able to do this via CSS. An ugly but working example is: http://codepen.io/spinningarrow/pen/xZJxOb.

@scofield7
Copy link

@spinningarrow - i tried something simliar to your example and ran into another issue:
Additionally I added a click option to the new +icon: the zoom opens, but i doesn't close anymore and i don't understand why!?

$('body').on('click', '.icon', function (event) {
$(this).prev('[data-action="zoom"]').trigger("click");
});

@williams-young
Copy link

is there any set to close the full screen display ?

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

No branches or pull requests

4 participants