Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

How to position a shape so that it follows the end of animated text?

New Here ,
Mar 27, 2025 Mar 27, 2025

In this example below; what I'm trying to accomplish is the yellow triangle to follow the end of the text as it animates in. I've scowered the internet for answers but haven't found anything trying to do this. 

As the text animation builds each character in, I want the triangle to follow the text until the end.

 

Screenshot 2025-03-27 at 11.03.19 AM.pngexpand image

TOPICS
Expressions , Scripting
130
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 28, 2025 Mar 28, 2025

For a simple shape like the triangle in your screenshot, there's a preset called "Blinking Cursor Typewriter Console".

Apply that to your text and then expand the expressions area on the source text.

You'll see this code:

var t = text.sourceText;
var l = t.length;
var a = effect("Animation")(1);
var c = ["|","_","—","<",">","«","»","^"];
var d = effect("Cursor Shape")(1).value;
var reveal = t.slice(0, l*linear(a,0,100,0,1));
reveal + c[d-1];

In the effects panel, there are some settings you can

...
Translate
New Here ,
Mar 27, 2025 Mar 27, 2025

Also: the text box has to be a "Box Text" container. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 27, 2025 Mar 27, 2025

You may want to do this with parenting.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 28, 2025 Mar 28, 2025

For a simple shape like the triangle in your screenshot, there's a preset called "Blinking Cursor Typewriter Console".

Apply that to your text and then expand the expressions area on the source text.

You'll see this code:

var t = text.sourceText;
var l = t.length;
var a = effect("Animation")(1);
var c = ["|","_","—","<",">","«","»","^"];
var d = effect("Cursor Shape")(1).value;
var reveal = t.slice(0, l*linear(a,0,100,0,1));
reveal + c[d-1];

In the effects panel, there are some settings you can alter.  The blink speed set to 0 will prevent the cursor from blinking.

And you can choose the shape of the cursor you want.  If you visit a website like copychar.cc and search for triangle, you can then find the character : â€£

 

If you edit the above expression, to replace the "|" with "‣" you'll get your arrow:

var t = text.sourceText;
var l = t.length;
var a = effect("Animation")(1);
var c = ["‣","_","—","<",">","«","»","^"];
var d = effect("Cursor Shape")(1).value;
var reveal = t.slice(0, l*linear(a,0,100,0,1));
reveal + c[d-1];

 

Then you could add a text animator for Fill Colour and expand its range advanced settings to set the end point to be yellow.  Ideally you'd do that in Per Character styling in the expression, but it's quite tricky to get right.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 30, 2025 Mar 30, 2025
LATEST

Thank you! This was a great solution!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines