Jump to content
Search Community

rashonwill

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by rashonwill

  1. I used the CDN install instead, that works for me. Thanks.
  2. I'm have a nodejs - express server and trying to use the Flip plugin. I get this error below whenever I run my server and I've required it on my route. ReferenceError: document is not defined. Desktop/Fari Backend/fari_backend/node_modules/gsap/dist/Flip.js:1222 _setDoc(document.body); const { gsap } = require("gsap/dist/gsap"); const { Flip }= require("gsap/dist/Flip"); gsap.registerPlugin(Flip); Not sure how to solve this, as I've followed all instructions.
  3. Thank you guys, I will look at both solutions!
  4. Sure, I've added a new codepen above, that's cleaner. https://codepen.io/williamsrashon/pen/QWdaWyK
  5. I've made a cleaner version. https://codepen.io/williamsrashon/pen/QWdaWyK
  6. Thank you. I have a follow up to this. How can I make this repeat multiple times. I know there is a repeat property, but it only repeats the one original motion however many times I set the repeat to. I sort of want the plugin to do the flip the first time, "Get that state" and make another flip, based on the new state, sort of looping through the plug in as many times as I declare. I'm working on a 3card monte game, see code pen. I would like to just click the button once and have it apply the plugin animations 4 different times. https://codepen.io/williamsrashon/pen/OJbOEzQ?editors=0010
  7. Can this be achieved through gsap? I want to have a shuffle animation for grid items. See Code Pen.
×
×
  • Create New...