Reveal text effect

Matt Perry

In this tutorial, we're going to build the Reveal text effect example step-by-step.

This example is rated intermediate difficulty, which means we'll spend some time explaining the Motion APIs we've chosen to use, but it assumes familiarity with JavaScript as a language.

Here's a live demo of the example we're going to be creating:

Loading...

Checking Motion+ status…

The Reveal text effect tutorial

is exclusive to Motion+

300+ examples & 40+ tutorials

Premium APIs

Motion Studio editing tools

alpha

Discord community

Early access

Lifetime updates

One-time payment, lifetime updates

Already joined?

Introduction

The Reveal text effect example shows how to create an elegant hover animation where text slides upward to reveal alternative content underneath. This effect uses the hover function from Motion to detect hover interactions and the animate function to create smooth vertical animations.

The hover function makes it easy to add enter and exit animations to elements, while animate provides a simple way to animate DOM elements with hardware-accelerated transforms.

Motion is supported by the best in the industry.