React-slick: Add animate argument to slickGoTo method

Created on 23 Sep 2016  路  7Comments  路  Source: akiran/react-slick

So it looks like the slick library accepts a second argument of a boolean to animate or not..

    Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) {

        var _ = this;

        _.changeSlide({
            data: {
                message: 'index',
                index: parseInt(slide)
            }
        }, dontAnimate);

    };

But it doesn't seem to be accepted in react-slick...

slickGoTo: function slickGoTo(slide) {
    this.innerSlider.slickGoTo(slide);
},
queued

Most helpful comment

Hello. How are things going with this issue? I also need to use this functionality.

All 7 comments

Hello. How are things going with this issue? I also need to use this functionality.

This would also be huge for me, any progress?

Any updates on this?

Checking in here, is there no current way to have the slickGoTo method animate?

Any updates on this issue? I would like to animate the slickGoTo method too.

The referenced commit should take care of it.

Could you release new version with this update?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

walker-jiang picture walker-jiang  路  3Comments

Exomnius picture Exomnius  路  3Comments

eternalsky picture eternalsky  路  3Comments

will88 picture will88  路  3Comments

adamthewan picture adamthewan  路  4Comments