Code Monkey home page Code Monkey logo

Comments (18)

joelambert avatar joelambert commented on June 4, 2024

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.

lucapost avatar lucapost commented on June 4, 2024

yep, is there a way to add controls (play, pause, next, prev) for both?

from flux-slider.

joelambert avatar joelambert commented on June 4, 2024

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.

lucapost avatar lucapost commented on June 4, 2024

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.

lucapost avatar lucapost commented on June 4, 2024

can you show me how to add controls for 2 slides in single page?

from flux-slider.

joelambert avatar joelambert commented on June 4, 2024

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.

lucapost avatar lucapost commented on June 4, 2024

up :D

from flux-slider.

lucapost avatar lucapost commented on June 4, 2024

can you help me? please -.-

from flux-slider.

lucapost avatar lucapost commented on June 4, 2024

if nobody help me, I think that will change the gallery :-(

from flux-slider.

joelambert avatar joelambert commented on June 4, 2024

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.

lucapost avatar lucapost commented on June 4, 2024

can ou add controls for both gallery in your example plz?

from flux-slider.

Allegra avatar Allegra commented on June 4, 2024

Can you help me too? I need these feature .

from flux-slider.

joelambert avatar joelambert commented on June 4, 2024

Here is an example which has controls for prev & next.

http://jsbin.com/inide4/4

I suggest you use proper event binding rather than onclick but the code is the same.

from flux-slider.

lucapost avatar lucapost commented on June 4, 2024

wow! thanks!

from flux-slider.

Allegra avatar Allegra commented on June 4, 2024

OH! thanks guys!

from flux-slider.

joelambert avatar joelambert commented on June 4, 2024

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.

lucapost avatar lucapost commented on June 4, 2024

uhm... is there a way to pause with one click all sliders in one page?

from flux-slider.

joelambert avatar joelambert commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.