Comments (18)
Hi Luca,
Here is a simple example of setting up two sliders on the same page: http://jsbin.com/inide4/2
Hope that helps?
from flux-slider.
yep, is there a way to add controls (play, pause, next, prev) for both?
from flux-slider.
Yeah absolutely, give the README a look. It describes the API.
Essentially every flux.slider
object you create can be controlled via Javascript, so you can do something like this:
window.f = new flux.slider('#slider1');
window.f.next() // Show next image
window.f.prev() // Show previous image
window.f.stop() // Stop the slider from autoadvancing
window.f.start() // Start autoadvancing
There is a bunch of extra settings you can do with the above such as specifying specific transitions etc but take a look at the docs.
Flux has been designed to be as flexible as possible, which means that it doesn't come with a pre-defined next/prev transport UI. But the API means you can hook up your own UI, just how you want it to look!
from flux-slider.
html: http://dpaste.com/557830/
javascript: http://dpaste.com/557831/
css: http://dpaste.com/557832/
can you help me to modify this code to insert 2 or more gallery in single page?
thanks,
Luca.
from flux-slider.
can you show me how to add controls for 2 slides in single page?
from flux-slider.
Hi Luca,
I'm afraid I'm snowed under with work at the moment, I'll get back to you ASAP but its likely to be a couple of weeks
Thanks
Joe
from flux-slider.
up :D
from flux-slider.
can you help me? please -.-
from flux-slider.
if nobody help me, I think that will change the gallery :-(
from flux-slider.
Luca, the links you've posted are no longer working. I'm also incredibly snowed under with work at the moment.
The jsbin link I posted above shows how to setup two sliders on one page, although some of the images no longer work the code is still correct.
from flux-slider.
can ou add controls for both gallery in your example plz?
from flux-slider.
Can you help me too? I need these feature .
from flux-slider.
Here is an example which has controls for prev
& next
.
I suggest you use proper event binding rather than onclick
but the code is the same.
from flux-slider.
wow! thanks!
from flux-slider.
OH! thanks guys!
from flux-slider.
Glad this helped, sorry it took a while I've been crazy busy last few weeks. Drop me a link when you're up and running, would love to see what you're working on.
Gonna close this ticket now
from flux-slider.
uhm... is there a way to pause with one click all sliders in one page?
from flux-slider.
Yes, just call the stop()
function on all the sliders you created on the click
event for whatever dom element you want to be the stop button.
If you'd like to hire me to help you get this all working then feel free to send me a private message.
from flux-slider.
Related Issues (20)
- Flash of next image during transition to previous HOT 4
- CSS3D transforms not recognized in IE10 HOT 6
- pagination
- Choose Only One Transition HOT 3
- Concentric and Warp cause image's position shift before transition. HOT 1
- random images and external data file
- Possible memory leak on Safari HOT 3
- about making the slider responsive? HOT 2
- Can't get transitions to work? HOT 2
- Doesn`t work in IE HOT 2
- onTransitionStart event HOT 3
- using images of size 1024x350
- Help, please
- RTL support
- Pause on hover
- Disable lazy loading
- Missing image files in img folder
- Unable to open link in new tab
- On the question of response?
- how to use it in webpack with import statement?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flux-slider.