> For the complete documentation index, see [llms.txt](https://frangiordano96.gitbook.io/ae-expressions/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frangiordano96.gitbook.io/ae-expressions/quick-tips/after-effects-computer-type-on-effect.md).

# After Effects Expression - Computer Type-on Animation

### Full step by step Tutorial:

{% embed url="<https://www.instagram.com/p/CCRZaBOnxya/?utm_source=ig_web_copy_link>" %}

Paste this code on the Source Text property:

```javascript
var blinkControl = Math.sin(time*Math.PI*5);
var inTime = marker.key(1).time;
var outTime = marker.key(2).time;
var animTime = linear(time, inTime, outTime, 0, text.sourceText.length);
var animation = text.sourceText.slice(0, animTime);

if (time <= inTime) {
	(blinkControl < 0)? "|" : "";
} else {
	(time < outTime)? animation+"|" : animation;
}
```
