Animating the Dynamic Text Box
Due to popular request here's an explanation as to how I go about animating the dynamic text box. Combine the use of Range Selectors to get a smooth animation that can easily be controlled using keyframes on one layer.
Learn in 10 min how to create a dynamic text box that changes size automatically to the text, on one text layer without complex expressions with any font, in Adobe After Effects.
This style is everywhere! Use this for your titles, your lower thirds, anything where you present text. I use this for all the text boxes in these tutorials, as this technique is so versatile and speeds up the creation process.
To get started, as this tutorial is all about creating this look on one layer, in a new composition create a new text layer and type out some text.
Next we will add some expression controls to our text layer to give us control over the resulting box.
Add the following as Slider Controls (from the Expression Controls menu) and rename by hitting Enter:
And we will also add a Color Control and call it Box Color.
Next we need to add the effects needed to make this look come alive. So add the following effects:
With our effects added we need to add in our expressions for the CC RepeTile effect.
Think of try and catch like a game of tag, with the aim being to try and avoid getting tagged. If you do not succeed in what you are trying (try) to do, then you will get caught (catch).
Similarly in coding, the program will try anything in the try{} brackets. If it fails for whatever reason, it will trigger any code found in the catch(){} function instead.
Including err as a parameter of catch() will capture details on the error that caused the try{} to fail.
Typically in something like After Effects, try{} is used to test out and see if particular scenarios are true, especially ones that do not have an inherent way to check a value, such as whether a layer has a parent etc.
We need to add expressions to the Beam Starting Point and Ending Point to keep it positioned correctly, so we will add the following.
That is how you create this text box effect on the one layer using minimal effects and minimal expressions, without requiring monospaced fonts.
I tried a bunch of ways to do this with some results better than others. The easiest way I have found that gives you a lot of control while not having to mess around too much is to do the following.
This works with any box colour and text colour and lets you keyframe the box opacity as a percentage. You can control the text opacity independently as well by using the Opacity property in the “CC Composite” effect.
Adding this one additional effect gives you a separate property you can keyframe for…
You could fake rounded edges with the layer effect -> stroke and make it the same color as your box. There’s probably other ways as well using one of the Keying effects to refine the edge or something.
To add in two more controls you’ll need to do the following…
There is a separate tutorial on how to do this found in the related videos section.
Do the following…
Express your inner creative outwardly whilst supporting all that we do...
View Merch storeRun into an issue with one of the tutorials or is something not covered in the FAQ?
Contact and Support