Adjust KML file polygon height in real time

I just saw the custom style part of this example.

I made a part of a region into a realm.

I want to adjust the height in real time like in this link.

I’m starting cesium now, so I’m still lacking.
I would appreciate it if you could tell me how to do it.