Code Monkey home page Code Monkey logo

flickity-as-nav-for's People

Contributors

desandro avatar themasch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

flickity-as-nav-for's Issues

asNavFor selected without click on Nav pics and stops at halfway

good evening,
I have encountered the issue with asNavFor function.
Main pic changes while scrolling on nav pictures without clicking on any pictures.

In addition to above, when clicking on flickity-prev-next-button and scrolling, main picture sometime stops at half.(half of previous picture and half of next picture are displayed)

please advise the solution.
thanks in advance.

Also sync drag movement

I'm using the asNavFor function in Flickity to create a placeholder gallery underneath the main gallery. This works pretty well, but when you drag the gallery the movements aren't synced realtime (only when you let go).

Is it possible to mimic the exact movements of the main gallery?

Uncaught TypeError: Cannot read property '0' of undefined when used for nav companion hidden by watchCSS

Hello!

I have 2 sliders with the following setup:

    <div
      class="cover-slider"
      data-flickity='{ "asNavFor": "#featured_banners_body_slider", "fade": true, "draggable": false, "imagesLoaded": true, "pageDots": false, "prevNextButtons": false, "wrapAround": true, "setGallerySize": false, "accessibility": false, "watchCSS": true }'
    >
      <img
        class="featured_banner slide"
        src="60yuz98zo4_Flickery_Box.png"
        aria-hidden="true"
        style=""
      /><img
        class="featured_banner slide"
        src="4zdg7w9it0_Slide_2.png"
        aria-hidden="true"
        style=""
      />
    </div>

    <div
      id="featured_banners_body_slider"
      class="banner-body-slider card-body flickity-soft-edges flickity-soft-edges-white flickity-buttons-adjacent flickity-buttons-bottom-center"
      data-flickity='{"pageDots": false, "wrapAround": true, "watchCSS": true}'
    >
      <div
        id="featured_banner_33"
        class="featured_banner slide"
        aria-hidden="true"
        style=""
      >
        <em class="tagline">New documentary</em>
        <h3 class="heading">Enmity</h3>
        <div class="description">
          <p>
            Then war broke out in heaven. Michael and his angels fought against
            the dragon, and the dragon and his angels fought back. But he was
            not strong enough, and they lost their place in heaven.
          </p>
        </div>
        <a
          href="https://www.youtube.com/watch?v=VtjMGchgrqs"
          class="btn_watch_now btn-watch-now"
          data-fancybox=""
        >
          Watch Now
        </a>
      </div>
      <div
        id="featured_banner_34"
        class="featured_banner slide"
        aria-hidden="true"
        style=""
      >
        <em class="tagline">Old mockumentary</em>
        <h3 class="heading">The Day After</h3>
        <div class="description">
          <p>
            In an age where deceptions run loose and relativism is thriving, it
            is essential to stand tall as a light shining God’s unadulterated
            truth to the world.
          </p>
        </div>
        <a
          href="https://www.youtube.com/watch?v=7-wAzlqzXH0"
          class="btn_watch_now btn-watch-now"
          data-fancybox=""
        >
          Watch Now
        </a>
      </div>
    </div>

Both of them are hidden by setting content: '' upon a CSS breakpoint as described in the watchCSS manual.

When the page is being open with a viewport width already beyond that breakpoint, I get the following console error:

image

It doesn't hurt much and doesn't break anything within the sliders when they become enabled again, but I guess it's easy to fix.

flickity-prev-next-button should also change slide in main slider

Good morning from Berlin!

Yesterday I tried out the asNavFor functionality and noticed that the flickity-prev-next buttons on the navigation slider don't have any effect on the main slider. Is this intended behaviour? Intuitively I thought it should always select the same item in the main slider as in the navigation slider.

Uncaught TypeError: Cannot read properties of undefined (reading 'create')

hello, please help im keep getting this error
Uncaught TypeError: Cannot read properties of undefined (reading 'create')
image

<script src="https://unpkg.com/flickity-as-nav-for@3/as-nav-for.js"></script> <script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>

`<script>
$(function() {
$('.__main-preview').removeClass('d-none').flickity({
pageDots: false,
prevNextButtons: false,
draggable: false,
});

        $('.__carousel-preview').removeClass('d-none').flickity({
            asNavFor: '.__main-preview',
            contain: true,
            pageDots: false,
            prevNextButtons: false,
            draggable: '>4',
            cellAlign: 'left',
        });
    })
</script>`

This is the render result
image

Flickity asNavFor-carousel run 1 behind main-carousel

Is there an option to set the asNavFor-carousel run 1 slide behind te main-carousel?

I want to accomplish something like this: see my gif. Only here the slides show image 1 and 1, I want it to show 1 and 2 (then 2 and 3) ...

In the image there is visually only 1 slider. (In code: the big image is the main-carousel and the small image is the asNavFor) But If there is a feature to set the AsNavFor 1 behind the main slider I can make it feel like the small image is the next slide in the carousel.

(I hope this makes sense, this is my stackoverflow)

SSR import solution

Hi there.
Is there any solution when using flickity-as-nav-for for SSR projects like NextJS?

Doesn't respect wrapAround

I have two flickities, both have wrapAround: true, but the other one which moves automatically is rewinding at the end instead of continuing. Here's modified version of your asNavFor demo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.