GreenSock GSAP: animate your site’s HTML!

Tech and Architecture
vignette GreenSock pour blog Numendo

This time, we will not be looking at a new JavaScript framework, but at an animation library. Thanks to GreenSock, you can animate any element of the DOM using a set of tools.

To find out more about the latest update to the animation library, do read our article GSAP 3.

What does GreenSock offer?

GreenSock’s aim is to make animating code simple and intuitive; its distinctive feature is that it is easy to learn. It is made up of a set of tools, each with its own role:

  • TweenLite: considered the “engine core”, this tool handles the animation of the object and the property of your choice. This tool is a Lite version, but it can be extended using optional APIs.
  • TweenMax: a beefier version of TweenLite. It has the same capabilities as the engine core, but is also able to produce secondary features. TweenMax also has a small library of plugins such as CSSPlugin, which makes it possible to animate all the CSS properties of your HTML elements.
  • TimelineLite: a must-have for animation, TimelineLite is a powerful sequencing tool that acts as a container for the chosen elements. It makes it possible to simplify the control of those same elements and to manage their synchronisation with one another precisely.
  • TimelineMax: offers the same features as TimelineLite, but also other secondary features. You can find a list of these features here.

3 animations created with TweenMax!

Now that the explanations are over, it is time to move on to practice! Here are 3 examples of basic animations that can be created with TweenMax:

  • SplitText: with this JavaScript element, you can split the characters of a text in order to animate them afterwards. In the case below, the text was split letter by letter, then animated with TweenMax.

See the Pen GSAP1 by Matthieu (@Matthieu87) on CodePen.

  • Draggable: this TweenMax element makes it possible to create an element (here a block) and move it within a defined space.

See the Pen GSAP2 by Matthieu (@Matthieu87) on CodePen.

  • CardWrapper: a function capable of flipping an element over and displaying content on it. Here, we used it to flip the Numendo logo over and display “Hello!” behind it.

See the Pen GSAP3 by Matthieu (@Matthieu87) on CodePen.

Did you enjoy the article? Do share it on social networks! If you would like to find out more about the digital world, discover our other articles.

For more articles, do take a look at our blog.

How about we connect?

Shape your brand’s digital future. Whether you want to align your touchpoints, create unified customer experiences, or optimize your omnichannel ecosystem, we design solutions that blend innovation and elegance.

Parler à un expert

Insights,
the essentials

All news
Les 7 métiers de la tech incontournables en 2026
Tech and Architecture 05.08.2026

The 7 must-have tech jobs in 2026

Mehdi developpeur fullstack senior
Tech and Architecture 02.05.2024

Mehdi, Senior Full-Stack Developer at Numendo: “I was on a conventional path that I ended up not following”

prensentation de plusieurs logo digitalisés pour présenter le client Mzars
Tech and Architecture 05.01.2024

Client Case Study: How Mazars Switzerland transformed its customer relationship management with Zendesk

2 personnes signent un contrat pour présenter les métiers de la tech en 2024
Tech and Architecture 13.12.2023

Tech careers: 7 jobs recruiters are fighting over in 2024

Numendo Paris Agency

48 Rue de la Bienfaisance
75008 Paris

Our Paris agency supports brands and key accounts with their most strategic digital projects.

Located just 10 minutes from Saint-Lazare station and steps from the Miromesnil metro, it brings together our experts in consulting, e-commerce, product data, and omnichannel architecture.

Numendo Paris embodies the perfect synergy of strategic vision, technical expertise, and client proximity.

Be part of the adventure
Numendo Paris

Joining Numendo Paris means joining an innovation hub where technical excellence meets an entrepreneurial spirit. A stimulating environment to drive world-class strategic projects right in the heart of the capital.

Numendo Mulhouse Agency

2a Av. Auguste Wicky
68100 Mulhouse

The Mulhouse agency is our technical center of excellence dedicated to the performance of your business platforms.

Located in the heart of Alsace, steps from the Mulhouse train station and in close proximity to Germany and Switzerland, our office is home to a community of passionate experts focused on innovation and code robustness.

It embodies the group’s technological powerhouse, capable of building highly complex B2B and industrial ecosystems.

Be part of the adventure
Numendo Mulhouse

Thriving in Mulhouse means joining a historic hub where a passion for technology and team spirit take center stage. <br>A human-scale environment ideal for tackling large-scale industrial and technical challenges.

Numendo Genève Agency

Rue du Marché 5,
1204 Genève

Our Geneva agency combines a culture of precision with digital expertise to elevate your projects in Switzerland and internationally.

Ideally located in the very heart of Geneva, it offers a premium work environment to support the data transformation of the most demanding businesses.

Geneva is our dedicated hub for structuring product information and deploying agile and scalable e-commerce strategies, primarily within the luxury and finance sectors.

Be part of the adventure
Numendo Geneva

Being part of the Geneva team means cultivating high standards and precision to deliver high-performing, sustainable digital solutions.<br>An exceptional work environment to transform the future of product data and Swiss e-commerce.