direction-reveal icon indicating copy to clipboard operation
direction-reveal copied to clipboard

Cannot get it working in Gatsby / React

Open exocode opened this issue 4 years ago • 2 comments

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

exocode avatar Sep 08 '20 07:09 exocode

Hi has this been solved?

AnushreeDhar avatar Feb 23 '22 13:02 AnushreeDhar

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... 🤷🏻‍♂️

exocode avatar Feb 23 '22 16:02 exocode