Native objects like lines and rectangles and circles can have Animation applied to them.
It's configured separately: right-click on the object and select "Animation".
You'll find position, color, length, etc. can be linked to expressions and/or to Tag values.