Just for the heck of it –
if you would like to have the headline scale-in over a duration instead of just popping on, add a slider called “Scale duration” to the headline layer and use the below expression. Note that this assumes there are only two key frames on the subline, animating it from empty text to not empty. This also assumes that the headline has a uniform scale.
subText = thisComp.layer(“subline”).text.sourceText;
subTextLength = subText.value.length;
if(subTextLength>1){
heroKey = thisComp.layer(“subline”).text.sourceText.nearestKey(time);
scaleStart = heroKey.time;
scaleEnd = heroKey.time+(effect(“Scale duration”)(“Slider”)/(1/thisComp.frameDuration));
scalePerFrame = value[0]/(scaleEnd-scaleStart);
if(time<=scaleStart){
[0,0];
};
if(time>scaleStart&&time<scaleEnd){
[(time-scaleStart)*scalePerFrame,(time-scaleStart)*scalePerFrame];
};
if(time>=scaleEnd ){
[value[0],value[1]];
};
}else{[0,0]};