0

I am using skitter to create a slideshow and it looks like the easing functions I provide with the easing_default key are not having any effect. Here is my code:

$('.skitter').skitter({
    auto_play: false,
    dots: false,
    velocity: 0.1,
    easing_default: 'linear'
});

I tried a lot of values for the easing property like 'easeInQuart' etc. and the animation always seemed to move forward in the same way. I even tried some invalid values like 'fdoijhrb' and it did not give any errors.

What am I doing wrong here?

The library adds easing effects like this in its source code:

var easing = (this.settings.easing_default == '') ? 'easeInQuad' : this.settings.easing_default;

Link to the API: https://skitter-slider.net/options.html

Link to fiddle: https://jsfiddle.net/85uqdxhr/

Thanks.

Real Noob
  • 1,369
  • 2
  • 15
  • 29
  • Cant say for sure but a cursory look looks like the "easing" effects are not built-into the plugin. Otherwise did you find a list of easing effects in the documentation? – GetSet Feb 20 '22 at 12:52
  • Thanks @GetSet. :) I have added a line of code from the library to show how they determine which effect to add. I have also included the easing library that they recommend. – Real Noob Feb 20 '22 at 12:59
  • Ok, I just looked. But it appears that in those docs for the easing library (in ref to "jquery.easing.1.3.js") that there is no "linear" easing effect. Maybe it's spelled differently than what you have in your code if it's built into jquery itself. – GetSet Feb 20 '22 at 13:08
  • I have tried other effects included in the library source code as well and none of them work. I will create a working demo. :) – Real Noob Feb 20 '22 at 13:23
  • Ok because I'm curious too, seems like a cool slideshow plugin otherwise – GetSet Feb 20 '22 at 13:26
  • @GetSet Here is the fiddle: https://jsfiddle.net/85uqdxhr/. Try changing the easing methods. :) – Real Noob Feb 20 '22 at 14:54
  • Alright I'll give it a try – GetSet Feb 20 '22 at 14:56
  • Could be that there is no perceptible (human wise) difference between cross-fade transitions with the various ease methods. It may be that you will have to see the perceptible differences as it pertains to "motion", e.g. tweening. ... I tried the fiddle. – GetSet Feb 20 '22 at 15:04
  • I slowed down it a lot. Even if the difference is not perceptible at fast speeds there would be something it slow speeds. – Real Noob Feb 20 '22 at 15:50

0 Answers0