Jump to content
Search Community

Very Basic Question ; GSAP target ___ not found.

TheAmbiguousPitchfor test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

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

 

<html>
<head>
    <link rel="stylesheet" href="style.css">
    
</head>
<body>
    <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>
</body>
</html>

 

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