Jump to content


Very Basic Question ; GSAP target ___ not found.

Go to solution Solved by OSUblake,

Recommended Posts

I've only just started looking into gsap and encountered this error (gsap.min.js:10 GSAP target .one not found. https://greensock.com) in my code?


Not sure what i am doing wrong?



See the Pen eYEyEKR by lankolas (@lankolas) on CodePen

Link to comment
Share on other sites

  • Solution

Welcome to the forums @TheAmbiguousPitchfor


It's best to put all your script tags before the end of the closing <body> tag. When you put them up top, the DOM isn't ready, so the element you are trying to target doesn't exist.


    <link rel="stylesheet" href="style.css">
    <div class="one"> </div>
    <div class="two"> </div>
  <div class="three"> </div>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.8.0/gsap.min.js"></script>
    <script src="001.js"></script>


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