Jump to content
Search Community

craigstand

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by craigstand

  1. Thank you, good to know for the future. I put it on CodePen to show my code, in the final file when I upload to a server the file doesn't animate. Does my code indicate anything that I did wrong? I'm uploading an HTML file to the server, is that the wrong way to do it?

     

    I went through all of the starter documents, I don't see where I went wrong.

  2. I'm new to GreenSock, I have 2 objects that have the same ID. I've added an opacity but it only fades in one of the objects, what am I doing wrong.

    I've searched a lot and can't find a solution. Here is my code, I have 2 headshots I want to fade in but only one headshot fades in, nothing happens to the other.

     

    window.onload = function(){
        var headshot = document.getElementById("headshot");
    TweenLite.to(headshot, 0, {autoAlpha:0});
    TweenLite.to(headshot, 2, {autoAlpha:1, delay:2});

    }

×
×
  • Create New...