« back to Blog

An interactive swarm

Jared Malan
Director Of Technology
 @
Edgar Allan

An interactive swarm

Create a dynamic grid of squares that react to mouse movement, simulating a swarm-like effect (is it a swarm?). This code is the scaled back version of something we did for a client. We'll show you the finished experience once that projects launches.

Play with the example: https://slater-original.webflow.io/swarm​

Review the code: https://slater.app/projects/library-ncsco-largely-replaced-by-new-snippets/editor2​

​

Refresh the page after form submit

Clear any form with a page refresh. Simple and useful.

​https://slater.app/community_library/refresh-after-form-submit-1bf16338-06b4-464d-b7ac-dab1f3a2f15b​

​

Handle Resize

Optimize window resize handling by debouncing rerendering of elements.

​https://slater.app/community_library/handle-resize-6290e135-3d12-442b-9263-b939a8f328e5​

​

Not what you are looking for? Go check out the full Community Library.

Do you have useful scripts that the Webflow community could use? Let us know and we'll get them added.

Try it out for yourself

Sign up for a free trial and see if Slater is for you.

Share this post

We are building a first-class development experience that bridges together code and no-code.