sly slider horizontal and responsive ?

1,121 views
Skip to first unread message

sebastia...@googlemail.com

unread,
Apr 26, 2014, 7:53:19 AM4/26/14
to sly...@googlegroups.com
hello forum,

i need this slider
http://darsa.in/sly/examples/horizontal.html
in "Force Centered" mode!

but, i need this in responsive:
http://sorgalla.com/jcarousel/examples/responsive/

when resize the browser window you see the image effect
can this the sly slider ?

thanks!

Sly.js

unread,
Apr 26, 2014, 8:45:10 AM4/26/14
to sly...@googlegroups.com
No. Sly doesn't have anything for responsiveness build in, but it has a nice API so you can easily implement it yourself.

You'd listen on window resize event, and when window is smaller than a certain breakpoint you add a class to a frame which makes all images bigger and  frame itself smaller (to fit 2 instead of 3 items), and than you call reload on sly instance. A few lines of code.
Reply all
Reply to author
Forward
0 new messages