1/* Adding animation to a class called home */
2
3const home= document.querySelector('.home')
4const animate= document.querySelectorAll('.class_name');
5
6animate.forEach(any_name =>
7 any_name.addEventListener('click', function () {
8 home.style.animation = "your animation";
9}));