Skip to content

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

Merged
feimosi merged 2 commits intodevfrom
new-api-methods
Jan 23, 2018
Merged

(feat) Add 'show' and 'hide' methods to the API#155
feimosi merged 2 commits intodevfrom
new-api-methods

Conversation

@feimosi
Copy link
Copy Markdown
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