Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Macrossyiu

Dose GSDevTools work with DoubleClick ad Banner?

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi
 

I'm trying to make the GSDveTools works with Google DoubleClick Ad Banner. (Remove it  and submit the Ad banner to DobuleClick when I get approve from the client.)

I follow the tutorial from GS but the timeline tools doesn't show up. Please help.

Archive.zip

Link to comment
Share on other sites

Sure, GSDevTools should work with any GSAP animations on a page. It looks like in your demo, though, you're using the ES module file directly in the browser, in a <script> tag that doesn't have type="module". That's why it's throwing errors. I'd recommend just using the minified file (GSDevTools.min.js) instead which is intended to run in that exact context.

 

Does that help? 

Link to comment
Share on other sites

Thanks for the reply, Jack.

I added    <script type="module" src="DrawSVGPlugin.min.js"></script>  in the header. but no magic happens.
Anything that I'm missing?

Many thanks,

Archive-R1.zip

Link to comment
Share on other sites

No no, type="module" is only for if you're using an ES module but you're using the regular ES5 minified file (which is what I'd recommend). Just remove that type="module" and you should be good-to-go. If you're still having trouble, please provide a reduced test case so we can inspect what's going on. I made the change in the files you provided, and it seemed to work great. 

  • Like 1
Link to comment
Share on other sites

It looks like you tried loading "DrawSVGPlugin.min.js" instead of "GSDevTools.min.js". Completely different file :)

  • Like 1
Link to comment
Share on other sites

Ops~

My mistake. it is working now with the"GSDevTools.min.js"
Many thanks,

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.
×