Jump to content
Search Community

Uncaught Can not tween a null target.

Dutty test
Moderator Tag

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 create an animation using the CSSRulePlugin.js. When I open my HTML file in the Chrome, Safari or Opera  I get an error in the console (Uncaught Can not tween a null target TweenMax.min.js: 16) and it does not work. This error does not appear in Firefox. It works perfectly in Firefox and on a server.

What I found out is that this might be the problem. 

 

TweenMax.set(rule, {cssRule:{marginTop:"150vh"}}); and/or TweenMax.delayedCall(.2, function () {

 

However i’m not sure and I’m stucked. Does anyone know how I can solve this?

See the Pen YJBYRW by dutty (@dutty) on CodePen

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