You may have seen animations recently where type smoothly changes proportions. These transitions are made possible / much easier with Variable Font technology
Related resources to this post are in the box below:
What is a Variable Font?
Usually font families consist of multiple files – each with a set form, such as Thin, Extra Bold, Condensed, or Italic (and combinations of these!). A Variable Font is able to store all of these parameters within a single file.
You can also fine tune these properties. So for example, rather than selecting a set weight like Regular or Bold, you can choose an integer weight value with a slider.
Cavalry can animate these values, which offers many creative possibilities! Here are two basic examples, where the width and weight of a font are animated to their extremities.
Animating a variable font by manipulating its Weight axis.
Animating a variable font by manipulating its Width axis. This will only work with typefaces that have Condensed or Expanded versions.
If you want to have a go yourself, there are plenty of variables available for download on Google Fonts. When browsing, you can filter these with the Technology > Variable tag.
Going further
We’ll be doing lots of typography animations, and so referencing this video by First Keyframe, let’s walk through the process, and get familiar with some more advanced functions.
First let’s drop a text box in by holding Opt/Alt and clicking the Type tool. Now centre it on the scene by using these two buttons within the text box attributes: Alignment > Align Centre and Vertical Alignment > Align Middle.

Aligning the text box to the centre of the scene
Next, go to Style Behaviours > Apply Typeface. This adds a new layer with that name, so now double-click on that to edit its attributes.
Select your installed variable font. I am using Space Grotesk. Under Mode choose All (this means that we are affecting all characters, rather than a subset).

Applying typeface properties
As usual, you will see preset weights listed for your font, but click on the ellipsis to the right (named Variation Parameters) to reveal a weight setting slider. Note that you can drag this sub-panel out — we’ll need to do so shortly, to make a connection.
In the case of Space Grotesk, the weight range is from 300 to 700. You will also notice that you can keyframe this property.
Now, let’s mix things up a bit by adding an Oscillator behaviour, which influences animation on a wave format. Press Cmd/Ctrl+. search for Oscillator and double-click to apply it.
Connect the Oscillator layer to the font weight in the Variation Parameters panel.

Connecting the Weight of a variable font with an Oscillator
Open the Oscillator attributes by double-clicking on the layer. We need to set the min and max values to match our font, and we want to deploy the full range of weights, so remembering what we noted earlier, set them to min = 300 and max = 700.
Playing the animation now looks a bit quick; so we can lower the Frequency and Time Scale values to try and improve this. Try setting Oscillator > Frequency to 1 and Oscillator > Time Scale to 0.5, as a starter…
However the animation will likely look a bit janky! So the next value that we can experiment with, is Oscillator > Stagger. If we set this to 0, then the font weight will ping-pong between 300 and 700. Play with negative values until you get a smooth result. For this example, -3 seems to work well. I had to experiment with the three properties above, and it’s likely you will too!
Smoothing out the effect with Frequency at 1.0, Time Scale at 1.0, and Stagger at 3.3.
There are lots of properties within the Oscillator behaviour, so it’s well worth playing around with them! While we are here, we may as well recreate the final section of the video, by animating the fill colour.
Colour Blending
Firstly we need to group the Oscillator and Apply Typeface layers (Cmd/Ctrl+G). It would be wise to rename this group, something like Motion.
Double-click on the original text shape and go Material Behaviours > Apply Text Material. Pop this new layer in a new group and name it Colour.
Open up the group and double-click on the Apply Text Material layer. Now go Behaviour > Mode > All.
Press Cmd/Ctrl+. search for the Color Blend behaviour and make sure it is in your Colour group folder. Now edit the attributes for the Color Blend.
Notice that there is a Strength value and a Gradient property. Strength refers to a position on the gradient from left (0%) to right (100%)
Let’s connect things! open up the Apply Text Material layer again and open the Fill tab. Then drag a connection between the Color Blend layer and the Apply Text Material > Fill > Color property.

Connecting the Color Blend layer with the Fill property of the type.
Now go back to the color blend attributes and you will see that by adjusting the Strength value, the colour of the type changes! Feel free to set each colour on the gradient ends to something different from the default black & white. Just double-click on the end points to do so, or you could drag a swatch from your library.
Now, let’s involve an Oscillator again! We want the colour changes to reflect the type transformation, and so we will recycle the behaviour used previously. Open up the Motion group, select and duplicate the Oscillator (Cmd/Ctrl+D), the new one should have a 1 in its name. Drag this new layer into the colour group and rename it Oscillator Colour.
Drag a connection between Oscillator Colour and the Fill > Strength value for the Color Blend layer.

Connecting the Oscillator layer and the Color Blend’s Fill
Which doesn’t do anything straight away! Open up the attributes for Oscillator Colour and we now need to reflect the strength values (rather than the type weight values in the original oscillator). So to use the full range of the gradient, we these need to be changed to Min = 0 and Max = 100.
The final export
Notice how by recycling the Oscillator layer, that the weight and colour hue run together.
—
As mentioned earlier, this post has been created with the help of Learn to Master Variable Fonts with this One Animation by First Keyframe. Which is a highly recommended channel to follow for learning Cavalry.




