Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8547141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:12:08+00:00 2026-06-11T13:12:08+00:00

Currently I’m making a banner in html5/javascript (also a way of learning for myself,

  • 0

Currently I’m making a banner in html5/javascript (also a way of learning for myself, it’s still relatively new to me) and I’m using the tweenlite library. I’m experimenting what the best way of making banners is in html5, so I’m trying out all these different plugins to make the same banner. Now it’s Greensock’s turn with its new GSAP v12.

I hope it’s clear that atm I don’t want to use anything other than TweenLite/Max for this solution. I also can’t even if I wanted to (file size limitations).

So now my problem. I’m trying to make a text slide in and fade-in at the same time. The sliding is working perfect and was easy enough but the fading doesn’t seem to be doing anything.

Here is the part of the code (note that I made it a fade-out for now, easier testing):

TweenMax.to(ctxTitle, 0.5, { ypos:titleToYpos, css:{alpha:0}, ease:Power2.easeOut, onUpdate:loopTitle });

function loopTitle() {
  ctxTitle.clearRect(0, 0, width, height);
  ctxTitle.fillText(title, ctxTitle.xpos, ctxTitle.ypos);
}

If I left anything out, feel free to ask! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:12:09+00:00Added an answer on June 11, 2026 at 1:12 pm

    I noticed a few things:

    1) You’re trying to tween the css of the context itself instead of the canvas element.

    //BAD:
    TweenLite.to(document.getElementById('canvas4').getContext('2d'), 0.5, {css:{alpha:0}});
    
    //GOOD:
    TweenLite.to(document.getElementById('canvas4'), 0.5, {css:{alpha:0}});
    

    Of course you can create 1 tween for the context that handles the ypos and another tween for the canvas element that handles the opacity/alpha. They’ll run perfectly synchronized.

    2) You’re using a very old version of the GSAP file(s). Snag the latest from http://www.greensock.com/v12/

    If you need anything else at all, don’t hesitate to swing by the GreenSock forums at http://forums.greensock.com.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want use html5's new tag to play a wav file (currently only supported
Currently using a MySQL database Wanting to insert a new row into a table
Currently I am using HTML files for parts of my user interface. I display
currently, I`m implementing a map App with Mono4Droid and there I`m using a WebView
Currently I'm starting a new Activity and calling finish on a current one. Is
Currently I have 2 ways of displaying images in a cell, which way will
Currently i'm having trouble using two functions in my -(void)viewDidLoad , both of these
Currently I am using Amazon Cloudfront to service static objects on my ASP.Net MVC3
Currently I'm using the Jackson JSON Processor to write preference data and whatnot to
Currently writing a C# application it should do backups using GIT in the background.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.