use a key to transition the same element when the data changes
No-Library (pure JS), HTML, CSS, JavaScript