making animation able to display per element