开发者

Add Slide effect to Sliderman.js

开发者 https://www.devze.com 2023-02-14 18:04 出处:网络
I\'m using the Sliderman.js (http://www.devtrix.net/sliderman/examples.h开发者_运维百科tml) but can\'t seem to figure out how to get a simple effect to work, all the big ones work fine, just want my i

I'm using the Sliderman.js (http://www.devtrix.net/sliderman/examples.h开发者_运维百科tml) but can't seem to figure out how to get a simple effect to work, all the big ones work fine, just want my images to slide in from the right and slide out from the left so basically like a loop, need to modify the code but don't know how, help!

The source code is avaliable here: http://www.devtrix.net/sliderman/examples.html

Thanks in advance.


It is best to paste your code so far to give us a starting point. I think you just need to specify move and a start position in the effects. Like so:

Sliderman.slider({ container: 'whatever', width: 800, height: 200, effects: { move:true, right:true, duration:400 }, display: {autoplay: 3000} });

Code taken from example 3 on the page you linked to. It cycles through various options - I've just grabbed the right to left movement one.

0

精彩评论

暂无评论...
验证码 换一张
取 消