How do I gradually change a UI element's size over time during runtime?

I’ve got a menu of various items players can purchase and I want the price tabs to shrink down to nothingness before being deleted. Everything I’ve found regarding gradually changing the sizes of an object during runtime seem to be aimed at actual in-game objects rather than UI elements. I’m assuming localeScale doesn’t work for UI elements because while I’m not getting an error for that code, it’s not working either. Any help would be much appreciated.

@Scott_Brandon

Look into RectTransform.sizeDelta. You can use the Update method or a coroutine to update its x value — I assume you want to shrink the tab horizontally. SizeDetla behaves differently depending on how you have anchored the UI element.