GithubHelp home page GithubHelp logo

Comments (5)

Ma2iio avatar Ma2iio commented on June 12, 2024 3

image
my setting.
At widths greater than 0 px, show 1 item. greater than 600 px, show 2 item. greater than 1024 px, show 10 item. It used greater than only.

from react-owl-carousel.

KharareManisha555 avatar KharareManisha555 commented on June 12, 2024 2

image
my setting.
At widths greater than 0 px, show 1 item. greater than 600 px, show 2 item. greater than 1024 px, show 10 item. It used greater than only.

Please give more clarification how to pass this values to OwlCaraousel component.

from react-owl-carousel.

anamwp avatar anamwp commented on June 12, 2024 2

Here is my solution.
I create a state in my component

state= {
        responsive:{
            0: {
                items: 1,
            },
            600: {
                items: 2,
            },
            1000: {
                items: 4,
            },
        },
    }

and call it inside owlCarousel component

<OwlCarousel
                            className="owl-theme"
                            loop={loop}
                            margin={gap}
                            nav={nav}
                            dots={dots}
                            items={column}
                            autoplay={autoPlay}
                            responsive={this.state.responsive}
                        >

Let me know if it solve the problem
Thanks.

from react-owl-carousel.

2point1creations avatar 2point1creations commented on June 12, 2024 1

Can i get more clarification of the exact syntax you would use to add the responsive code. I'm getting syntax compile errors how would i add it the example given in the docs

<OwlCarousel className="owl-theme" loop margin={10} nav items={5}>

from react-owl-carousel.

azizgharbi avatar azizgharbi commented on June 12, 2024

How to pass those params in OwlCaraousel component, Great question cause i cannot the way to do that

<OwlCarousel className="owl-theme" loop margin={10} nav items={5}>

from react-owl-carousel.

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.