metafizzy / flickity-fade

Fade between Flickity slides
62 stars 18 forks source link

Flickity fade slide error #18

Closed billpebert closed 2 years ago

billpebert commented 2 years ago

Please help, I got this error when using flickity-fade package (with cdn)

Here is the css cdn package

<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css"> <link rel="stylesheet" href="https://unpkg.com/flickity-fade@2/flickity-fade.css">

Here is the carousel html and the script set up <div class="testimonial-carousel"> ....carousels div.... </div>

<script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script> <script src="https://unpkg.com/flickity-fade@2/flickity-fade.js"></script> <script> $('.testimonial-carousel').flickity({ // options fade: true, cellAlign: 'left', contain: true, prevNextButtons: false }); </script>

i don't figure out why this slide fade not working, only run in the dom like i am using normal flickity package but, it shown error like img below

image
atlamors commented 2 years ago

+1

billpebert commented 2 years ago

Solved by using flickity-fade@1