slick.js

Scroll Up to the previous div when scrolling back to top

ぃ、小莉子 提交于 2020-05-17 06:07:10
问题 I am trying to scroll back up to previous section when scrolling back to top. I have the solution for scrolling continuously after last slider. But now i am not able to find for the opposite when scrolling back to top.(continuously scrolling top after fist slider) I have attached the jsfiddle and codepen snippets for the reference $(document).ready(function () { $('.customer-logos').slick({ vertical: true, infinite: false, arrows: false, dots: true }); }); const slider = $(".customer-logos");

Uncaught TypeError: jQuery(…).slickLightbox is not a function

戏子无情 提交于 2020-04-30 04:35:07
问题 I'm trying to add a Lightbox to my slick slider. But when I implement it, Console puts out that there is no function slickLightbox. Uncaught TypeError: jQuery(...).slickLightbox is not a function How can I solve this? Please see my Code below. I'm using shopify. The CSS files are included in the <head> and should be fine. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.css"/> <link rel="stylesheet" type="text/css" href="https:/

Uncaught TypeError: jQuery(…).slickLightbox is not a function

♀尐吖头ヾ 提交于 2020-04-30 04:33:05
问题 I'm trying to add a Lightbox to my slick slider. But when I implement it, Console puts out that there is no function slickLightbox. Uncaught TypeError: jQuery(...).slickLightbox is not a function How can I solve this? Please see my Code below. I'm using shopify. The CSS files are included in the <head> and should be fine. <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.css"/> <link rel="stylesheet" type="text/css" href="https:/

Slick carousel has 0px width when loaded in collapsed tab

允我心安 提交于 2020-04-06 06:47:08
问题 When loading slick slider in collapsed content (angular-bootstrap collapse plugin in this case) the .slick-track div gets 0px width, resulting in the slider trying to fit all slides on top of eachother. When pressing arrow to see next slide, the slides go back to normal. If I select the slider and want to check the components in my browser, it also goes back to normal. Please see this example: http://plnkr.co/edit/iw9f2alEnK0HFkv1eq16?p=preview This is the slick configuration I'm using: $

Slick show 2 row, 6 items on desktop and 1 row, 1 item on mobile

佐手、 提交于 2020-01-31 06:00:05
问题 Could someone help me figure out why my code isn't working? I'm trying to accomplish 2 rows and 6 items on the full width and 1 row with 1 item on mobile. $('.your-class').slick({ slidesToShow: 1, rows:2, slidesPerRow: 3, responsive: [{ breakpoint: 500, settings: { arrows: true, infinite: false, rows:1, slidesPerRow: 1, slidesToShow: 1, } }] }); <div class="your-class"> <div class="">your content</div> <div class="">your content</div> <div class="">your content</div> <div class="">your

Stop autoplay after clicking on dots in slick.js

丶灬走出姿态 提交于 2020-01-24 07:54:25
问题 So, this is code I use for slider: $('.autoplay').slick({ slidesToShow: 3, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, dots: true }); And I want that after user clicks on any dot, it will disable autoplay. Then I tried this: $('.autoplay').on('init', function() { $('.slick-dots').click(function() { $('.autoplay').slick('autoplay', false); }); }); But no help. Here is DEMO from jsFiddle. Is this possible with slick.js ? 回答1: Try this $('.autoplay').slick({ slidesToShow: 3,

Stop autoplay after clicking on dots in slick.js

五迷三道 提交于 2020-01-24 07:54:05
问题 So, this is code I use for slider: $('.autoplay').slick({ slidesToShow: 3, slidesToScroll: 1, autoplay: true, autoplaySpeed: 2000, dots: true }); And I want that after user clicks on any dot, it will disable autoplay. Then I tried this: $('.autoplay').on('init', function() { $('.slick-dots').click(function() { $('.autoplay').slick('autoplay', false); }); }); But no help. Here is DEMO from jsFiddle. Is this possible with slick.js ? 回答1: Try this $('.autoplay').slick({ slidesToShow: 3,

Get the current image name of a slickR slideshow in shiny

老子叫甜甜 提交于 2020-01-14 02:48:28
问题 Below is a shiny app which displays a slideshow of images with the slickR package. How to get the name of the current image? library(shiny) library(slickR) ui <- fluidPage( tags$div( slickROutput("slickr", width="500px"), style = "margin-left:100px;" ) ) server <- function(input, output) { imgs <- list.files("~/", pattern=".png", full.names = TRUE) output[["slickr"]] <- renderSlickR({ slickR(imgs) }) } # Run the application shinyApp(ui = ui, server = server) 回答1: Here is a solution with a

Disable sliding when selecting a slide in slick slider

∥☆過路亽.° 提交于 2020-01-13 03:45:12
问题 I am using syncing sliders "fullslide" - 1 slide at a time "thumbslide" - 5 slides at a time, used as nav for fullslide when selecting 1 slide from thumbslide i want it to become active without sliding to the left or to the center. Is there a way to achieve this? CODE $('.slider-for').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: true, asNavFor: '.slider-nav', accessibility: false }); $('.slider-nav').slick({ slidesToShow: 5, slidesToScroll: 1, asNavFor: '.slider-for', dots

Slick slider text on top of images

时光怂恿深爱的人放手 提交于 2020-01-10 19:56:09
问题 I'm trying to make a pretty normal carousel, with two arrows on either side in the vertical middle, and text with a button in the middle on top of the image. I cannot get anything to appear on top of the image though, even though the arrows and text are all absolute and have a higher z-index. Here's a codepen with my code. http://codepen.io/kathryncrawford/pen/AXmVAz And here's my HTML <div class="slick-slider"> <div> <img class="img-fluid" src="http://www.placecage.com/1500/750" alt=""> <div