Joined April 2014
·
Posted to
Iterate over querySelectorAll result
over 1 year
ago
It's really stupid that you can use forEach
on a result from querySelectorAll
. Thanks for the tip tho, it helped me.
Achievements
8 Karma
0 Total ProTip Views
Charity
Fork and commit to someone's open source project in need
Thanks mate. You should use
element.offsetTop
instead of having a set number (e.g800
) in yourtarget
in your example. Would've been clearer.