slick icon indicating copy to clipboard operation
slick copied to clipboard

cssEase not working

Open GijsGoudzwaard opened this issue 10 years ago • 12 comments

The cssEase from the docs does not work.

I've tried it with this piece of code on the latest build:

$(document).ready(function() {
    $('.fade').slick({
        dots: true,
        infinite: true,
        speed: 800,
        fade: false,
        slide: 'div',
        cssEase: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)'
    });
});

It's exactly the same as using it without the cssEase.

GijsGoudzwaard avatar Jan 04 '16 13:01 GijsGoudzwaard

Hello ! I had the same issue so I came back to v1.8.5 and it's working well. I think it's related to last commits involving cssTransform property

mickaelchanrion avatar Jan 05 '16 00:01 mickaelchanrion

The latest version is 1.5.9, how are you on 1.8.5?

GijsGoudzwaard avatar Jan 06 '16 08:01 GijsGoudzwaard

Oops! I meant 1.5.8

mickaelchanrion avatar Jan 06 '16 08:01 mickaelchanrion

I tried it with 1.5.8 and it still didn't work.

GijsGoudzwaard avatar Jan 06 '16 08:01 GijsGoudzwaard

I use bower to get slick : "slick-carousel": "1.5.8"

And then, I call slick by this lines :

var slider = $('#slider'), params = {};

params.cssEase = 'cubic-bezier(0.18, 0.89, 0.32, 1.28)'; slider.slick(params);

Be sure you have the right version !

mickaelchanrion avatar Jan 06 '16 21:01 mickaelchanrion

I got it working with 1.5.8, hopefully they'll update the plugin so it will work in the latest stable version.

GijsGoudzwaard avatar Jan 08 '16 08:01 GijsGoudzwaard

Cool ! You can stay at this version until they fix that issue ;)

mickaelchanrion avatar Jan 08 '16 12:01 mickaelchanrion

Related to #1950 might be fixed with useTransform defaulting to true now

mcashley avatar Jan 15 '16 16:01 mcashley

Just to let you know that on your website download package, this bug remains - no css3 transitions by default: https://github.com/kenwheeler/slick/archive/1.5.9.zip

ugrupp avatar Feb 09 '16 16:02 ugrupp

Same issue with bower, I had 1.5.9. though transitions weren't working using this fix above.

Downloading straight from the master branch here worked for me.

joepagan avatar Feb 24 '16 10:02 joepagan

Hello!

I've found, that on the 1885 line, there is this block:

if (bodyStyle.WebkitTransition !== undefined || bodyStyle.MozTransition !== undefined || bodyStyle.msTransition !== undefined) { if (_.options.useCSS === true) { _.cssTransitions = true; } }

But chrome has dropped the prefix, so it is Transition now without Webkit.

Hozeee avatar Mar 07 '16 16:03 Hozeee

@Hozeee somewhat commonly used older versions of android mobile still need the prefix: http://caniuse.com/#search=transform

@GijsGoudzwaard @Michkkael did you check the useTransform: true fix? I'm going to close this for the time being, since it seems like it's a dup, but if that still doesn't work after that fix it'd be great to get it recreated in a fiddle.Thanks!

leggomuhgreggo avatar Mar 07 '16 17:03 leggomuhgreggo