How to change the acceleration of Nivo-Slider?

I use NivoSlider and I am not very good at javascript, so I was wondering how to change the transition effects to nivo-slider? or can i change it? If possible, I would like to use only one transition effect on my images. Please, help.

+2
source share
3 answers
// This is the default setting: $('#slider').nivoSlider({effect:'random'}) // Each transition effect will be random 

// You can choose one of the following effects:

  • sliceDown
  • sliceDownLeft
  • sliceUp
  • sliceUpLeft
  • sliceUpDown
  • sliceUpDownLeft
  • collapse
  • fade away
  • random
  • slideInRight
  • slideInLeft
  • boxRandom
  • boxRain
  • boxRainReverse
  • boxRainGrow
  • boxRainGrowReverse
+3
source

There are a number of “effects” that the Nivo slider supports for transitions - have you seen the page yet? You pass an object literal to the nivoSlider call with the parameters you want to use, and you can specify one of them. A list of all the parameters that you can set is displayed, and immediately after that a list of available effects is displayed. You need to be more specific about what specific effect you want if you want a more specific answer.

+1
source
 <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider({effect:"fade"}); }); </script> 

Use other effects to suit your needs instead of "fade"

0
source

Source: https://habr.com/ru/post/1415576/


All Articles