rashonwill
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by rashonwill
-
-
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.
-
Thank you guys, I will look at both solutions!
-
Sure, I've added a new codepen above, that's cleaner.
See the Pen QWdaWyK by williamsrashon (@williamsrashon) on CodePen
- 1
-
-
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.
See the Pen OJbOEzQ?editors=0010 by williamsrashon (@williamsrashon) on CodePen
-
Can this be achieved through gsap?
I want to have a shuffle animation for grid items. See Code Pen.
See the Pen ZEBxEJd by williamsrashon (@williamsrashon) on CodePen
GSAP/Flip Plugin with NodeJs/Express server.
in GSAP
Posted
I used the CDN install instead, that works for me. Thanks.