Gatsby: I want to add carousel in my gatsby website but it uses window object so i am unable to handle this.how can i put carousel in my website? please give me solution

Created on 10 Sep 2018  路  2Comments  路  Source: gatsbyjs/gatsby

Description

Describe the issue that you're seeing.

Steps to reproduce

Clear steps describing how to reproduce the issue. Please please please link to a demo project if possible, this makes your issue _much_ easier to diagnose (seriously).

Expected result

What should happen?

Actual result

What happened.

Environment

Run gatsby info --clipboard in your project directory and paste the output here. Not working? You may need to update your global gatsby-cli - npm install -g gatsby-cli

question or discussion

Most helpful comment

Hi @amit-deligence, you can use any of the available open-source React Carousel components for this. Some of them being:

There are other open source solutions as well which you are free to use. You can also use css snap points to do this, please check this article for more information.

All 2 comments

I think this is your solution.

Hi @amit-deligence, you can use any of the available open-source React Carousel components for this. Some of them being:

There are other open source solutions as well which you are free to use. You can also use css snap points to do this, please check this article for more information.

Was this page helpful?
0 / 5 - 0 ratings