If you are having issues could you please explain exactly where you are encountering the issues and also share your site’s read-only link? This will help us find out what’s going wrong in your use-case.
Hi @justin_c,
I see you have an HTML embed, i didn’t use that. I tried recreating the HTML in webflow and was relying on the script to react to the relevant IDs (ignoring topbar, etc) as the script only spoke to “canvas” but I didn’t get that result.
@andreswaby the canvas is not a class or ID of an element, it’s an actual element itself. This means that you cannot assign a class or ID of “canvas” to another element and have it work.
In the original tutorial, an element with an ID of “particles-js” is used. However, in your codepen example, the functionality is different. That example doesn’t seem to use the particle.js library at all, and specifically targets the canvas element
(e.g.: <canvas …, not an element with an ID or class attribute like <div id="canvas" …).
So, in order to have that specific codepen example to work you would need to use an HTML embed in Webflow since (at the moment) the Webflow designer doesn’t support the canvas element.
Thanks @justin_c,
If I should use the HTML embed then I would simply loose using the canvas as a background as this wouldn’t be able to hold any div elemets within it for a Hero section. Right?