Setting Up for HTML5 Animation with GreenSock

Animation with GreenSock (GSAP)

Learn how to prepare and manage class files for the GreenSock animation platform, an essential skill for animators and web developers. This tutorial will guide you through creating your own copy of class files, setting them up and editing them using both Mac and Windows operating systems.

Key Insights

  • The tutorial covers how to set up and manage class files for the GreenSock animation platform.
  • It provides a step-by-step guide on how to create your own copy of class files, instead of editing the original files.
  • The tutorial provides separate instructions for Mac and Windows users to create a copy of the class files.
  • For Mac users, the tutorial guides on how to select, duplicate and rename the GSAP Class folder.
  • For Windows users, the tutorial gives instructions on how to select, copy, paste, and rename the GSAP Class folder.
  • After completing these steps, users will have their own set of class files to use throughout the class.

This exercise is excerpted from Noble Desktop’s past web development training materials created in partnership with GreenSock. It is compatible with GreenSock version 2. To learn current skills in web development, check out our coding bootcamps in NYC and live online.

Build a Scroll Animation

  1. Register ScrollTrigger

    gsap.registerPlugin(ScrollTrigger).

  2. Define the Animation

    gsap.to(target, { scrollTrigger: { ... } }).

  3. Set Trigger and Markers

    trigger element, start position, scrub for direct linkage.

  4. Test scroll forward and back

    Animation should reverse cleanly.

Complete the following setup prior to beginning any exercises.

Topics Covered in This GreenSock Tutorial:

Setting up Your Class Files

Creating Your Own Copy of Class Files

Throughout this workbook you will be editing class files that we have prepared for you. Instead of editing the originals, we’ll have you make a copy just for yourself to edit.

Web Design Certificate: Live & Hands-on, In NYC or Online, 0% Financing, 1-on-1 Mentoring, Free Retake, Job Prep. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.
  1. If you have any windows open, minimize or hide them so you can see the Desktop.
  2. Open the Class Files folder.
  3. Follow the appropriate Mac or Windows instructions below:

    Mac:
    • Click once on the GSAP Class folder to select it.
    • Press Cmd–D to duplicate it.
    • Rename the duplicate folder yourname-GSAP Class.
    Windows:
    • Click once on the GSAP Class folder to select it.
    • Press CTRL–C to copy it.
    • Press CTRL–V to paste it.
    • The new copy may be at the bottom of the list of folders. Rename it yourname-GSAP Class.
  4. You now have your own set of class files to use throughout the class. Have fun!

Learn more in these courses

How to Learn Coding

Master coding with hands-on training. Learning how to code in JavaScript, Python, and other popular languages can pave the way to a job in tech such as web development, data science & analytics, or software engineering.

Yelp Facebook LinkedIn YouTube Twitter Instagram