Jump to content
Search Community

GSAP with JSON problem.. I think

Osh test
Moderator Tag

Recommended Posts

So I am working "exclusive edition" on my assignment 😅🦹‍♂️ 

 

When I comment out <img> I can see perfect animation on headers and buttons. But when I comment it back it shows nothing animation. Can it be from json, that it is too heavy to load every image? I don't know if this is off topic but I don't understand why it doesn't animate. I tried to animate boxes as well 😕 but it didn't work.

 

Maybe I shouldn't call axios? Maybe axios made too complicated with GSAP? I don't know, I just guessing. 

 

Btw. I made it in Vue 2. so I don't know how to change in CodePen from html to .vue component. 

 

 

😓 ...

See the Pen LYywxVM by RQOrch (@RQOrch) on CodePen

Link to comment
Share on other sites

CodePen has a Vue editor.

 

image.png

 

But you might be bettor off using CodeSandbox.

 

And since you're loading data, you might need to wait for it, like using a watcher.

watch: {
  makeups() {
    this.$nextTick(() => this.animation());
  }
}

 

But it would be easier to help you out with a working demo.

 

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...