Streaming live at 10am (PST)

JS, CSS & HTML - Where to put each one?

What’s up guys,

I’m trying to embed something like the green particle animation this into my site -

I’ve read EVERYTHING I can find about this on various parts of this forum & beyond, including this tutorial (which works great until I change to a Codepen animation with all 3 languages.

Can anyone could explain where each one of these go & how to wrap them properly etc? I think it would be very beneficial for someone to explain this in depth once and for all & then repost it somewhere for all users to see.

Here’s the example I’m working from:

Grateful for any input whatsoever!

All the best,

1 Like

In Webflow, JS is usually placed in the Footer Code.

For HTML, use embed code component.

For CSS, place in Header Code.

Using jQuery plugins that are hosted on Github

Also, feel free to contact me for further code help and/or customization of third-party plugins


Not all heros wear capes.

Had a little inception moment after glancing at the reply, swap the a & m in your name and we become one :stuck_out_tongue:

Seriously though, thank you.

@samliew Just looked on github & couldn’t find anything like what I found on codepen/css desk.

Are they more complicated to implement?

Then manually do this

If you need help implementing something, you can always find me here

@samliew Okay I tried that & I tried wrapping it like you did but the CSS just showed on the page.

I’ve copied all of them in the right positions. What am I doing wrong here? I’m assuming tags/wrapping but I’m not sure exactly.

Here’s the live site -

Here’s the preview -

Totally wrong or close?

Thanks again,

  1. You cannot use LESS, SCSS, or SASS with Webflow. Switch the Codepen CSS view to Compiled CSS then copy that instead.

  2. Wrap CSS code between <style></style> tags.

  3. Wrap JavaScript code between <script></script> tags.

I just noticed that is not Codepen, so you have to manually convert it to CSS by hand or use a LESS compiler to change the LESS CSS code to plain CSS.

Okay I tried a different example using codepen just so I can learn the basics before I convert by hand.

Looks like I am nearly there, It’s just the particles missing -

For the record I’m using this now to try it out -

Thank you for all your help, I think I’ll be coming to you for some complicated changes I can’t do in the future as your rates look really reasonable.


Oh wow, okay it works now but stops after like 3 seconds and refreshes!

So close!!

Fixed it :slight_smile: Thanks again dude, works perfectly!

How did you do it? Sorry but I’m really struggling here :smiley:
Would appreciate a step by step explanation.

Please ask a new question if you have an issue. Don’t forget to explain what you are trying to do.