So, we had a web dev build our new homepage. He used NodeJS and had us 'run npm build' to build it on our end.
We managed to get the main page loading fine on our wordpress based site. It required us to wpenqueue the npm generated bundle.js file. However we wanted to use the footer he put together on the rest of the site.
The issue we're running into is the footer element that needs to animate does not work. It only works on the homepage which has a ton of elements to it.
Hopefully somebody here can give me some clues about how to get this to work.
I do understand that import gsap from 'gsap'; won't work on codepen the way I have it written, but I wanted to keep it as close to the original as possible.
There's also an export function initLogo() line (the file this javascript is pulled from is called Logo.js).
There is a general script.js file which includes the following, but I'm not sure if it's relevant here or not
//general css style
import './style.css';
//component css styles
import './header.css';
import './oscilloscope.css';
import './hud.css';
import './ticker.css';
import './tv.css';
import './team.css';
import './footer.css';
import './logo.css';
import { MousePosition } from './shared/MousePosition';
import { initOscilloscope } from './oscilloscope/Main';
import { initHud } from './hud/Hud';
import { initTicker } from './ticker/Ticker';
import { initTv } from './tv/Main';
import { initTeam } from './team/Team';
import { initLogo } from './logo/Logo';
//track mouse position
const mousePosition = new MousePosition(false);
mousePosition.init();
//oscilloscope
initOscilloscope(mousePosition);
//hud
initHud(mousePosition);
//ticker
initTicker();
//tv
initTv(mousePosition);
//team
initTeam(mousePosition);
//logo
initLogo();
Any insight would be much appreciated.