slick.js

Slick Slider - Implement using php causes background-image bug

主宰稳场 提交于 2019-12-08 13:05:25
问题 Good day all, I have made a rather cute slick-slider. It works a treat before I make it utilise PHP and host it on my site. $(function() { //console.log( "ready!" ); // SLIDER console.clear(); var carousels = $('.funky-slider'); var config = { dots: true, arrows: false, infinite: true, speed: 700, autoplay: false, autoplaySpeed: 5000, slidesToShow: 3, slidesToScroll: 1, swipeToSlide: true, pauseOnHover: false, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 2 } }, { breakpoint:

Let DIV break out of Bootstrap 4 container

陌路散爱 提交于 2019-12-08 11:06:00
问题 I'm using a container in Bootstra 4 to center the conent of my page in the middle of the browser. So far so normal. But I need something more. The content inside the container should break out on the left side and should grow to the browser-window. But only on the left side. Because I'm using the slick slider, I can't use position:absolute or something else on a single object in the container DIV. I need an whole DIV inside the container to grow to the left side. And I need the container to

Slick.js remove blue highlight around image

天大地大妈咪最大 提交于 2019-12-06 17:01:12
问题 I am using Slick.js to build a carousel inside a modal. Everything works perfectly until I click on an image. A blue border shows up and I unfortunately cannot figure out how to make it stop doing so. I've tried outline: none and border: none and have had no success. Here is my code HTML: <div id="openModal" class="modalDialog"> <div id ="background"> <a href="#close" title="Close" class="close">X</a> <div id="logo"> <img src="/media/{{ gallery.logo }}" alt="Smiley face" height="100" width=

Get the current image name of a slickR slideshow in shiny

天涯浪子 提交于 2019-12-06 07:21:03
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) Here is a solution with a MutationObserver : library(shiny) library(slickR) js <- " $(document).ready(function(){ var ss = document

Importing slick carousel theme css throws errors on webpack build

蹲街弑〆低调 提交于 2019-12-06 02:47:48
问题 I'm trying to import slick-theme.scss in my parent scss as @import "../node_modules/slick-carousel/slick/slick-theme.css"; but during bundle, I get errors on the files imported in slick-theme.scss . Here's the error log ERROR in ./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/sass-loader/lib/loader.js!./sass/app.scss Module not found: Error: Can't resolve './ajax-loader.gif' in '/Users/Vishal/Documents/Work/nf-core/sass' @ ./node_modules/css-loader!./node_modules

Slick slider pause youtube video when slide change

余生颓废 提交于 2019-12-05 18:41:01
I have created a image slider using Jquery Slick Slider, Its having youtube video clips as well. When page load youtube video is set to 1st slide of the slider and it is autoplay and starts playing. I want, when I change slider frame to next slide youtube video stops playing. I look at other stackoverflow answers but can't find anything. I tried this - Here is my div structure- <div id="mainSlider" class="box box-default"> <div class="sliderItem"><div class="playerID"><iframe width="100%" height="100%" frameborder="0" allowfullscreen="" src="https://www.youtube.com/embed/VIDEO_ID?rel=0

Slick carousel loads the wrong width on initialization

假装没事ソ 提交于 2019-12-05 06:00:28
On page load, for the first second of so, the first slide only takes up half of the screen before correcting itself. It is causing an unpleasant/snappy load experience. If I monitor the elements code via inspect I can see the inline width get updated about a second into page load. Any suggestions? i have same problem solution is start from prev slide (initialSlide: ...) and call slick('slickNext') 来源: https://stackoverflow.com/questions/36944421/slick-carousel-loads-the-wrong-width-on-initialization

Slick Carousel target active slide to add and remove animation classes

▼魔方 西西 提交于 2019-12-05 03:47:38
问题 I am trying to target the active slide in my slick carousel by ken wheeler to add an animation to the p element within that slide. So, when the slide is active, the p element will bounce in (or something), then when the slide transitions to the next slide, the animation will be applied to the new p element. After the slides have looped, the animated class will be continuously applied to the slick carousel . HTML: <div class="slick-promo"> <div class="single-slide">[img code here]<p>This text

Slick Carousel : Pause the Slick autoplay when youtube video is playing

妖精的绣舞 提交于 2019-12-04 22:47:37
问题 I am using http://kenwheeler.github.io/slick/ for the carousal. But the problem is the autoplay slides the slick to next even when the youtube video is playing. JSFIDDLE Currently I am using the below JS but nothing seems to work on it. $('#main-slider').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 3000, dots: true, infinite: true, adaptiveHeight: true, arrows: false }); var video = $('#main-slider .slick-active').find('iframe').get(0).play(); $('#main-slider')

Slick.js remove blue highlight around image

故事扮演 提交于 2019-12-04 22:38:37
I am using Slick.js to build a carousel inside a modal. Everything works perfectly until I click on an image. A blue border shows up and I unfortunately cannot figure out how to make it stop doing so. I've tried outline: none and border: none and have had no success. Here is my code HTML: <div id="openModal" class="modalDialog"> <div id ="background"> <a href="#close" title="Close" class="close">X</a> <div id="logo"> <img src="/media/{{ gallery.logo }}" alt="Smiley face" height="100" width="150"> </div> <div class="multiple-items"> <div><img src="/media/{{ gallery.image1 }}" height="200" width