There are a few ways but It can be easily achived by boolean and set size.
Try make a boolean that increase Portal size by x every tick for Zoom In effect and another boolean that decreases size by x for Zoom out effect.
When portal is spawned, set boolean to true. When it reaches your desired size then set boolean to false then.
Can also use 1 instance variable that set states instead of two booleans.