Question regarding an animation

Hello, im working on a new game for smartphone devices. I want to create something like super hexagon or pivvot if you are fimilar with those games. My problem is that i dont know how to create an animation that gradually changes it’s scale from bigger to smaller.
For exmple, look at the hexagon in the middle in the following video.

Thank you in advanced.

You’ll probably want to do this in code (or visual scripting such as PlayMaker) so you can tie it to the audio beat. Depending on the specific needs of your game, you might be able to simply adjust the transform’s localScale. You can use Mathf.SmoothDamp() to smoothly adjust it.

Well thank you for the quick response it was pretty helpful.
If anyone has another solution for this problem, write it here.