Site logo

Archived topic

Animated Background

5 replies · Started by Igor on January 29, 2022

Viewing posts 1–6 of 6

Hi there,

if you can share a link to your site where i can see it 'goes outside of hero' then i can take a look at what its doing.

Hi Igor,

The script you're using has an init function. This init function should have a line that tells the script where it adds the div.

Inside the init function function init(), you should see something like this line - document.body.appendChild(container);.

You should define the correct object instead of using document.body.

Example:

var pagehero = document.querySelector('.page-hero.home-hero');
pagehero.appendChild(container);

Thanks Elvin! It worked!

No problem. :D

This archived topic is closed to new replies.