You use an image editor to make an animation sheet of the enemy sprite getting larger and shrinking back down, then use action sequences to play the animation on top of the enemy.
Or you can use JavaScript commands to enlarge then shrink the sprite itself. The former would be easier for you to implement yourself.
Or you can use JavaScript commands to enlarge then shrink the sprite itself. The former would be easier for you to implement yourself.