fabiorino / crelly-slider

A free responsive slider for WordPress that supports layers. Add texts, images, videos and beautify them with transitions and animations.
MIT License
104 stars 36 forks source link

Flashing layer #79

Open applibs opened 2 years ago

applibs commented 2 years ago

I see that in code is:

// If there is only a slide, clone it
            if (total_slides == 1) {
                var clone = getSlide(0);
                var prepend = SLIDER.find(CRELLY).find(SLIDES);
                clone.clone().prependTo(prepend);
                total_slides++;
            }

Why is slide copied when its only one? When I comment it, my text layer still flashing. Why?