Upgrade animatedElement