Jump to content
Search Community

Shuriken

Members
  • Posts

    3
  • Joined

  • Last visited

Shuriken's Achievements

  1. Hi, Indeed, I supposed it was the reason that is why I did not bother to fix it and moved to fromto.
  2. Hi Cassie, Thanks for the reply. I have read these docs but it do not apply in this case. After some reasearch, it appears that using FLip with React is not as easy as in vanillaJs because we can not control how React manage the virutal DOM. Thanks for reference. Indeed I started by doing the same thing as you but It did not work. As the From tween do not work as well. I must use a fromTo React is great to manage complex apps but we are limited within the framework.
  3. Hi everyone, First of all, no need to tell you that the library is just amazing. I just discovered it and was going through the examples. I viewed the vido about the FLIP plugin and I have a question regarding the implementation in React. in Js, it is pretty simple to move element through the dom but i tried to make something similar in React and to be honest, I have no idea on how to move a component from 1 div to another. What I tried is to put the components 2 imes in the code and use a toggle state to show it in one place and remove it in the other but the Flip do not work. I suppose that GSAP consider that they are 2 different components Any guidelines on how to use Flip with React ? In all the samples that I have seen, the elements are moved within a common parent and it works just well For example, how to convert the flip example in this codepen to React? https://codepen.io/GreenSock/pen/ExyzePZ Thanks a lot for your advices. Best regards.
×
×
  • Create New...