Is it possible, slide a simple html page #9
Comments
Slider.js currently only support images but you could hack the library to However, I'm thinking of making this recurrent need of sliding any content 2011/11/20 Luca G. Soave <
Gatan Renaudeau, @greweb http://twitter.com/greweb |
No idea from 'where' to start hacking the lib, ... any suggestion ? |
You could create a new method "setContent" which take an Array of HTML You could adapt the tmpl() to fit your need. Something like: (coffeescript) tmplSlider = (o) -> 0%
prev
next
and setContent : setContent: (@content) ->
Here is the full JS code which should work (haven't tested) with the var container = $(...); // On fly hacks ... // Using ... slider.setContent([ remember it will break the setPhotos, fetchJson method and will only work 2011/11/20 Luca G. Soave <
Gatan Renaudeau, @greweb http://twitter.com/greweb |
I'll get a try, many thanks. |
created a #12 issue |
I need to slide/carousel simple html pages or iframes,
is it possible with Slider.js ?
... follow a page sample I'd like to convert in a carousel : http://gitwatcher.com/
the object I'd like to slide is actually
any idea ?
Thanks in advance
Luca
The text was updated successfully, but these errors were encountered: