The value of X is determined only once, as Ashroot Animist's last ability resolves. The value of the bonus won't change later in the turn if Ashroot Animist's power changes.

Artwork
Loading artwork…
Ashroot Animist
Foundations · #117 · EN
Nonfoil—Foil—
Card rules
Trample
Whenever this creature attacks, another target creature you control gains trample and gets +X/+X until end of turn, where X is this creature's power.
4/4
"We will burn down the old growth of civilization and nurture what sprouts from the ashes."
Rare · Illustrated by Caio Monteiro
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Vintage Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If Ashroot Animist leaves the battlefield before its last ability resolves, use its power as it last existed on the battlefield to determine the value of X.