Jump to content
Search Community

rajibola

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by rajibola

  1. Thanks @Cassie

    I've been able to implement the mouse follow effect in react, but the issue is that I'm unable to hide the button on load.

     

    Is there anyway to hide the button before touching the screen.
     

     

  2. On 10/3/2020 at 12:14 AM, ZachSaucier said:

    You need to change the calculations. That function is only build to work with elements that have the same width and height. 

     

    I noticed that the offset is always the same no matter where you are on the rectangle. After some experimenting I realized it's half of the distance of the difference between the width and height. So add that difference to your x position and voila:

     

     

    Please how can I create this with ReactJs

×
×
  • Create New...