kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.54k stars 5.89k forks source link

slick carousel element doesn´t appear #3391

Open mianfrigo opened 6 years ago

mianfrigo commented 6 years ago

For some reason the slick carousel is not working i not sure if the is a problem with the script or the css but for some reason the element on the carousel doesn´t appear. when a i use any other config that is not the fade in fade out the elements doesnt appear and the slider function doesnt work.

html

<div class="project-carousel">
   <div class="projectos"></div>
   <div class="projectos"></div>
   <div class="projectos"></div>
   <div class="projectos"></div>
   <div class="projectos"></div>
   <div class="projectos"></div>
</div>

script

$('.project-carousel').slick({
    dots: false,
    infinite: true,
    speed: 300,
    slidesToShow: 1,
    centerMode: true,
    variableWidth: true
  });

Screentshot

jongc commented 6 years ago

At least based on your HTML and the screenshot, it doesn't look like you have anything in the carousel items, .projectos in your case.