+ 3
Is there anyway to add same animation to every element of same class instead of specifying for individual elements ?
So can it be a.style just ,instead of a[0] and a[1]? https://code.sololearn.com/WPHClrkufJ3o/?ref=app
2 ответов
+ 3
Mirielle ty
+ 1
Mirielle,
QuerySelectorAll() returns a nodelist object, and while it does have a forEach method, it is not an array. You will have to convert the nodelist to an array to use the other array methods.
https://developer.mozilla.org/en-US/docs/Web/API/NodeList.