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

Cannot get it working in Gatsby / React #12

Open
exocode opened this issue Sep 8, 2020 · 2 comments
Open

Cannot get it working in Gatsby / React #12

exocode opened this issue Sep 8, 2020 · 2 comments

Comments

@exocode
Copy link

exocode commented Sep 8, 2020

I've created a CodeSandbox with the most minimum requirements:
https://codesandbox.io/s/direction-reveal-demo-nvfc6?file=/src/pages/index.js

My primary issue is, that the CSS animations are not picked up. The regular styling does.
I took the ready rendered CSS and not the SCSS

Can you help me please or point me to the problem?

Many thanks in advance

@AnushreeDhar
Copy link

Hi has this been solved?

@exocode
Copy link
Author

exocode commented Feb 23, 2022

As far I can remember, I added some code to check if I am on Server or client:

  const containers =
    typeof document !== "undefined" ? document.querySelectorAll(selector) : []
  let touchStart

Not sure if this was everything to do... 🤷🏻‍♂️

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

No branches or pull requests

2 participants