## jquery – Elementor Pro Slick js Image Delays to Show

I’m using slick js for the hero section of my WordPress website. However, whenever I slide from the first slide reversely to the last slide, the image of the last slide delays to show until half a second later.

This is the website I’m working on:
https://shop.jerrychen.io

As you can see on the website, whenever the slider is slid from the first slide reversely to the last slide, the image of the last slide remains the same as the first one, then it changes to its own image a moment later.

The website is created with Elementor Pro page builder. I created a post section and transformed it into a slick js slider by setting its CSS class: ‘.hero-container .elementor-slick-slider’.

The slick js slider initialisation:

``````jQuery(document).ready(function(){
jQuery('.hero-container .elementor-posts').slick({
autoplay: true,
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
dots: true,
});
});
``````

I would be very grateful if someone can help.

## magento2.4.1 – How to move page builder slick slider right after breadcrumbs

I am https://store-locator-m2.magento-demo.amasty.com/amlocator/summercenter/, if add anything on description section it will come below the map section, i need to move the slider section above the map section, slider section only remaining thing as below the map

Screenshot:

Slider section class:

How to move slider only above map section?

## 8 – Step by step on how to add Javascript dependencies for modules as Blazy or Slick using Composer

Because my project is deployed to a remote server I need to reduce human access to that server, this is Why I add a composer extra repositories to manage javascript dependencies and then add those dependencies to mi theme library.

Blazy and Slick require external libraries that according to the authors it must be done manually. But, you could do it automatically. In the `composer.json` file add this code in the repositories area.
``````        {
"type": "package",
"package": {
"name": "kenwheeler/slick",
"version": "1.8.1",
"type": "drupal-library",
"dist": {
"url": "https://github.com/kenwheeler/slick/archive/v1.8.1.zip",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name": "dinbror/blazy",
"version": "1.8.2",
"type": "drupal-library",
"source": {
"url": "https://github.com/dinbror/blazy",
"type": "git",
"reference": "tags/1.8.2"
}
}
}
``````

Note: that we are using the latest versions for both libraries, but you could fix the text to connect your required version.

1. Install modules
Using composer commands to install the modules.
``````composer require dinbror/blazy
composer require kenwheeler/slick
``````

Note: Because we are setting both packages with type “drupal-library”, they will be installed according to extra params in composer on the propper “installer-paths” folder found in the composer file too.

In your custom THEME in the file `YOUR_THEME.libraries.yml` and the below lines taking care of identation.
``````blazy:
js:
/libraries/blazy/blazy.min.js: {}
/libraries/blazy/blazy.js: {}
slick:
js:
/libraries/slick/slick/slick.min.js: {}
css:
/libraries/slick/slick/slick.css: {}
``````
This way your new changes will take effect. (Drush required)
``````drush cr
``````

## ca.classical analysis and odes – Slick proof of Stirling’s Formula?

In this question, Noam Elkies and David Speyer have given a nice proof that the central binomial coefficient $$binom{2n}{n} sim frac{4^n}{sqrt{pi n}}$$. This can be used to derive Stirling’s formula
$$a_n = frac{n!e^n}{n^n sqrt{n}} sim sqrt{2pi}$$
by showing that $$a_n$$ is decreasing, hence convergent to some positive real number $$c$$, and computing $$c$$ via
$$c = lim_{n to infty} frac{a_{2n}}{a_n^2} = sqrt{2pi}.$$
My question is whether we can do without this roundabout tour and prove Stirling’s formula directly along the lines of the proofs quoted above.

## javascript – FancyBox with Slick slider issue

I added fancybox and slick slider and its working perfectly but there is 1 problem that i cannot resolve when you slide images inside fancybox lets say you have 2 images in the slider then you clicked on images to view other images in fancybox slide when you scroll over 2 more images and goes to the 3rd images then you close the fancybox slide it reset width and height of slick slider images and it goes half of the image for example image number 1 goes 50% and number 2 images goes full width and height and image number 3 goes 50% width also.

here is my code :

HTML

``````<div class="slide-images">

<div><a data-fancybox="gallery" href="Image/image1.jpg"><img src="Image/image1"></a></div>
<div><a data-fancybox="gallery" href="Image/image2.jpg"><img src="Image/image2"></a></div>
<div><a data-fancybox="gallery" href="Image/image3.jpg"><img src="Image/image3"></a></div>
<div><a data-fancybox="gallery" href="Image/image4.jpg"><img src="Image/image4"></a></div>
<div><a data-fancybox="gallery" href="Image/image5.jpg"><img src="Image/image5"></a></div>
<div><a data-fancybox="gallery" href="Image/image6.jpg"><img src="Image/image6"></a></div>
<div><a data-fancybox="gallery" href="Image/image7.jpg"><img src="Image/image7"></a></div>
<div><a data-fancybox="gallery" href="Image/image8.jpg"><img src="Image/image8"></a></div>

</div>
``````

JavaScript

``````\$('.slide-images').slick({
dots: false,
infinite: true,
slidesToShow : 2,
slidesToScroll:2,
nextArrow : '<button><i class="fas fa-arrow-square-right"></i></button>',
prevArrow : '<button><i class="fas fa-arrow-square-left"></i></button>',
});
``````

Images of what i get :

Image 1

Image 2

Image 3

## How to add Slick Slider

I want to add slick slider on my home page in magento using static block and phtml with rotating images. if anyone have idea about that then please answer my question as soon as possible.

## WordPress Slick Slider does not work in the Scroll me Service tabs

My website is https://www.compkkart.in/#home/services and I want to create carousels for each service tab but it only works in the 1st tab and not in any other tab and when resizing my browser it appears ..

WordPress version 5.3.2
Scroll Me Theme
Wordpress Slick Slider plugin ..

## css – Split Slick Slideshow add autoplay

I found a cursor that I liked on: https://codepen.io/supah/pen/zZaPeE

The only thing I would like to add is a `autoplay` functionality. The good thing is that it uses a Slick slideshow, which has a `autoplay` functionality, so I thought it was going to be easy. I added the `autoplay` argument, which worked, but some transitions correspond to the bad images … I'm almost sure it's because of the fanciful transitions, but I don't know what to change. Can anyone help me get things done?

My code is below, this is the original code with the `autoplay` argument:

``````var \$slider = \$('.slideshow .slider'),
maxItems = \$('.item', \$slider).length,
dragging = false,
tracking,
rightTracking;

rightItems = \$('.item', \$sliderRight).toArray();
reverseItems = rightItems.reverse();
\$('.slider', \$sliderRight).html('');
for (i = 0; i < maxItems; i++) {
\$(reverseItems(i)).appendTo(\$('.slider', \$sliderRight));
}

\$('.slideshow-left').slick({
vertical: true,
verticalSwiping: true,
arrows: false,
infinite: true,
dots: true,
autoplay: true,
speed: 1000,
cssEase: 'cubic-bezier(0.7, 0, 0.3, 1)'
}).on('beforeChange', function(event, slick, currentSlide, nextSlide) {

if (currentSlide > nextSlide && nextSlide == 0 && currentSlide == maxItems - 1) {
\$('.slideshow-right .slider').slick('slickGoTo', -1);
\$('.slideshow-text').slick('slickGoTo', maxItems);
} else if (currentSlide < nextSlide && currentSlide == 0 && nextSlide == maxItems - 1) {
\$('.slideshow-right .slider').slick('slickGoTo', maxItems);
\$('.slideshow-text').slick('slickGoTo', -1);
} else {
\$('.slideshow-right .slider').slick('slickGoTo', maxItems - 1 - nextSlide);
\$('.slideshow-text').slick('slickGoTo', nextSlide);
}
}).on("mousewheel", function(event) {
event.preventDefault();
if (event.deltaX > 0 || event.deltaY < 0) {
\$(this).slick('slickNext');
} else if (event.deltaX < 0 || event.deltaY > 0) {
\$(this).slick('slickPrev');
};
}).on('mousedown touchstart', function(){
dragging = true;
tracking = \$('.slick-track', \$slider).css('transform');
tracking = parseInt(tracking.split(',')(5));
rightTracking = \$('.slideshow-right .slick-track').css('transform');
rightTracking = parseInt(rightTracking.split(',')(5));
}).on('mousemove touchmove', function(){
if (dragging) {
newTracking = \$('.slideshow-left .slick-track').css('transform');
newTracking = parseInt(newTracking.split(',')(5));
diffTracking = newTracking - tracking;
\$('.slideshow-right .slick-track').css({'transform': 'matrix(1, 0, 0, 1, 0, ' + (rightTracking - diffTracking) + ')'});
}
}).on('mouseleave touchend mouseup', function(){
dragging = false;
});

\$('.slideshow-right .slider').slick({
swipe: false,
vertical: true,
arrows: false,
infinite: true,
autoplay: true,
speed: 950,
cssEase: 'cubic-bezier(0.7, 0, 0.3, 1)',
initialSlide: maxItems - 1
});

\$('.slideshow-text').slick({
swipe: false,
vertical: true,
arrows: false,
infinite: true,
autoplay: true,
speed: 900,
cssEase: 'cubic-bezier(0.7, 0, 0.3, 1)'
});
``````

The new Codepen: https://codepen.io/joshrodgers/pen/mdyGoaB

thank you,
Josh

## 8 – I've extended some features of the slick module, but I'm trying to do it so as not to be deleted with each slick update

I've extended some features of the slick module, but I'm trying to do it in a way that will not be erased every time I update slick.

I've added a CSS file and edited the php skin skin file to use the CSS file according to the user's choice. I've also added a boot class to the slick.html.twig template so that the cursor disappears on mobile devices.

Should I create a custom module that acts like slick_examples?

I use Drupal 8.

## magento2.3 – Slick Slide after scrolling the slide

I used Slick Slider to compare the product in Magento 2.3. The problem here is when I scroll only the slick slider is enabled. But I have to load the cursor before.

PHTML code

``````

\$3,499.99

()

``````

My code Js

``````require(('jquery', 'jquery/ui'),function(\$){
\$('.regular').not('.slick-initialized').slick({
dots: true,
infinite: true,
slidesToShow: 3,
slidesToScroll: 1,
arrows:true,
mobileFirst: true,
responsive: (
{

breakpoint: 599,
settings: {
slidesToShow: 2,
slidesToScroll: 0,
prevArrow: null,
nextArrow: null,
infinite : false

},
breakpoint: 999,
settings: {
slidesToShow: 3,

},
}
)
});

});

});
``````

Any help would be appreciated!