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

Support start slide on setup #61

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

Conversation

axelson
Copy link

@axelson axelson commented Mar 26, 2017

This allows you to add slides dynamically, even when moving backward.
To add a slide that occurs right before the current first slide write
code like the following:

var mySwipe = new Swipe(document.getElementById('slider'), {})
$('.swipe-wrap').prepend('

New Slide
');
mySwipe.setup({startSlide: 1});

This fork can be installed via bower with: bower install "swipe-js=https://github.com/axelson/swipe.git#2.2.4"

Fixes #28

If you'd like I could add some docs as well.

This allows you to add slides dynamically, even when moving backward.
To add a slide that occurs right before the current first slide write
code like the following:

var mySwipe = new Swipe(document.getElementById('slider'), {})
$('.swipe-wrap').prepend('<div>New Slide</div>');
mySwipe.setup({startSlide: 1});

This fork can be installed via bower with: bower install "swipe-js=https://github.com/axelson/swipe.git#2.2.4"
@axelson axelson mentioned this pull request Mar 26, 2017
@axelson
Copy link
Author

axelson commented Oct 14, 2017

Any thoughts on this? Would be nice to support reinitializing (better performance then a complete kill and new instance I think) for dynamic content.

@axelson
Copy link
Author

axelson commented May 27, 2018

Any chance on getting this merged? I can fix the conflicts if so.

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.

None yet

1 participant