Glitch Effect with Vanilla Javascript

Why is the console saying “bg” is null?

Answer me this. Where is the element with id=container?

1 Like

Duh! What a dork I am. Thank you!

No worries, no need to call yourself names. It happens to all of us.

1 Like

One more thing, why are the glitches just showing up at the top of my page now?

You aren’t setting a top on them so top defaults to 0.

1 Like

ohhhhh. Thank you! :slightly_smiling_face: