getAnimations method
Generates per-character opacity transitions from opacityFrom to opacityTo.
Implementation
@override
List<CharacterAnimation> getAnimations(double progress, int charCount) {
if (charCount == 0) return [];
return List.generate(charCount, (index) {
final staggered = staggeredProgress(progress, index, charCount);
final curved = applyCurve(staggered);
final opacity = opacityFrom + (opacityTo - opacityFrom) * curved;
return CharacterAnimation(opacity: opacity.clamp(0.0, 1.0));
});
}