Site logo

Archived topic

JS codepen animation in GP hook

3 replies · Started by Son on April 9, 2021

Viewing posts 1–4 of 4

Hi.
I would like to know if this animation code could run as a wp-head hook in GeneratePress elements.

https://codepen.io/Mamboleoo/pen/JjGZBqL

I tried to paste the JS code inside <script></script> but it doesn't work anyway. There is anything that I can do or this isn't a code which will run here?
I`m using the default template.

Thanks!

Unfortunately you'll not be able to get that animation just pasting the js code in a hook.
As you can see in the settings of the JS pane in codepen, it also uses GSap.js and P5.js

It will take a fair amount of coding to do what you're trying to.

Yes, that's what I was thinking...

Well, thank you so much anyway for your quick reply.

Best regards!

Thanks Roberto!

This archived topic is closed to new replies.