Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carousel transition #128

Closed
samuel-rosa opened this issue Dec 1, 2017 · 6 comments
Closed

carousel transition #128

samuel-rosa opened this issue Dec 1, 2017 · 6 comments

Comments

@samuel-rosa
Copy link

How can the carousel transition time be set? Is there any parameter for that purpose?

@ryanfox1985
Copy link
Contributor

Thanks for the proposal, it can be a good idea.

You are welcome to contribute this repository.

@jcolomb
Copy link

jcolomb commented Jun 26, 2018

It is probably in the css file, isn't it?

@GeorgeWL
Copy link
Contributor

GeorgeWL commented Jun 26, 2018

not 100% sure, I've forgotten whether it's pure css or if there's some JavaScript that sets that transition period.

Open Source, so feel free to Pull Request and we'll review it and add it to the repo.

We're using OwlCarousel2 https://owlcarousel2.github.io/OwlCarousel2/docs/started-welcome.html

@jcolomb
Copy link

jcolomb commented Jun 26, 2018

I think this is set in the front.js file under autoplay variables.
I do not know if it would be possible to make it easy to modify ?

I added loop: true, and one can change the autoplay value.

function sliderHomepage () {
  if ($('#slider').length) {
    // var owl = $('#slider')

    $('#slider').owlCarousel({
      autoPlay: 3000,
      loop: true,
      items: 4,
      itemsDesktopSmall: [900, 3],
      itemsTablet: [600, 3],
      itemsMobile: [500, 2]
    })
  }
}

@GeorgeWL
Copy link
Contributor

Look at Hugo's Custom Output feature.

That should solve it.

@ryanfox1985
Copy link
Contributor

I think this is set in the front.js file under autoplay variables.
I do not know if it would be possible to make it easy to modify ?

I added loop: true, and one can change the autoplay value.

function sliderHomepage () {
  if ($('#slider').length) {
    // var owl = $('#slider')

    $('#slider').owlCarousel({
      autoPlay: 3000,
      loop: true,
      items: 4,
      itemsDesktopSmall: [900, 3],
      itemsTablet: [600, 3],
      itemsMobile: [500, 2]
    })
  }
}

as he said you can override the js applying another transition time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants