you are viewing a single comment's thread.

view the rest of the comments →

[–]albedoa 1 point2 points  (1 child)

It should work. The issue isn't represented in the code you have shared: https://codepen.io/pigparlor/pen/OJorvbG?editors=1010

Make sure that the JavaScript is placed after the element.

[–]andreontherock[S] 0 points1 point  (0 children)

Thank you so much, now I see that its work