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

Multiple images and custom separator #121

Open
Vyborg777 opened this issue Oct 31, 2020 · 3 comments
Open

Multiple images and custom separator #121

Vyborg777 opened this issue Oct 31, 2020 · 3 comments
Assignees

Comments

@Vyborg777
Copy link

Heed your help friends!
I need to have multiple images with buttons to switch among them.
Cant find the right plugin or code for this.

Example

Exact the same function.. how to achieve?

Thank you!

@Vyborg777
Copy link
Author

ANY HELP WOULD BE APPRECIATED!

@nickMarz
Copy link

nickMarz commented Dec 3, 2020

Hi, @Vyborg777, this is accomplishable now, you'd first need to build a slideshow with something like https://get.foundation/sites/docs/orbit.html

and then include the twentytwenty code of as the image in each slide:

<ul class="orbit-container">
  <li class="is-active orbit-slide">
    <figure class="orbit-figure">
      <div class="twentytwenty-container">
        <img src="img/1_1.jpg" />
        <img src="img/1_2.jpg" />
      </div>
      <figcaption class="orbit-caption">Space, the final frontier.</figcaption>
    </figure>
  </li>

AND then you'd need to attach event handlers to the slideshow buttons to retrigger twentytwenxzty on slide change.

$("#orbit .twentytwenty-container").twentytwenty();

$('.orbit-controls *, .orbit-bullets button').click(()=>{
  $("#orbit .twentytwenty-container").twentytwenty()
})

@nickMarz
Copy link

nickMarz commented Dec 3, 2020

Also, you can customize any of the styles here: https://github.com/zurb/twentytwenty#build-with-scss

@nickMarz nickMarz self-assigned this Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants