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

(feat) Add 'show' and 'hide' methods to the API #155

Merged
merged 2 commits into from
Jan 23, 2018
Merged

Conversation

feimosi
Copy link
Owner

@feimosi feimosi commented Sep 16, 2017

Resolves #121, #122, #128, #166.

It's still work in progress. Compared to the original PR I've:

  • resolved the merge conflicts
  • fixed issue with not loading images on show
  • fixed opening the overlay when closed (needs gallery reference)

Used as:

const gallery = baguetteBox.run('.gallery');
baguetteBox.show(index, gallery[0]);

@feimosi feimosi merged commit 4544d04 into dev Jan 23, 2018
@feimosi feimosi deleted the new-api-methods branch January 23, 2018 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: progammable API?
1 participant