Posted in slick slider
4:28 am, March 1, 2023

Slick slider code testing with slower slides and auto play on videos

additional testing with changes for slick slider videos and auto play


<div class="slider">
    <iframe src=""></iframe>
    <iframe src=""></iframe>
    <iframe src=""></iframe>


.slider {
  width: 80%;
  margin: 0 auto;

.slick-slide {
  margin: 0px 20px;

iframe {
  width: 100%;
  height: 400px;
  border: none;


<link rel="stylesheet" type="text/css" href=""/>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>


    infinite: true,
    slidesToShow: 1,
    slidesToScroll: 1,
    autoplay: true,
    autoplaySpeed: 4000, // set the autoplay speed to 4 seconds
    speed: 1000, // set the slider transition speed to 1 second
    responsive: [
        breakpoint: 768,
        settings: {
          arrows: false,
          dots: true

  // autoplay the YouTube video when it appears
  $('.slider').on('beforeChange', function(event, slick, currentSlide, nextSlide){
    var video = $(slick.$slides[nextSlide]).find('iframe');
    if (video.length) {
      video.attr('src', video.attr('src') + '&autoplay=1');

View Statistics
This Week
This Month
This Year

No Items Found.

Add Comment
Type in a Nick Name here
Related Search Terms
Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕


🪦 2000 - 16 Oct 2022 - Boots
Random Quote

seren spirit :(
Random CSS Property


The font-variation-settings CSS descriptor allows authors to specify low-level OpenType or TrueType font variations in the @font-face rule.
font-variation-settings (@font-face) css reference