Cloneables

Matter.js and SVG Bodies

Let's face it, Matter.js is fun! It adds dynamic elements to any site where you can play, throw, and drag items into each other with real like physics. This cloneable features how to utilize Matter.js with SVG bodies. While technically this is easy to…

matter-js-svg-bodies.webflow.io
Matter.js and SVG Bodies live demo on a desktop screen
Matter.js and SVG Bodies live demo on a phone
Screenshot of the live demo, Oct 19, 2026 Open live demo

Let's face it, Matter.js is fun! It adds dynamic elements to any site where you can play, throw, and drag items into each other with real like physics. This cloneable features how to utilize Matter.js with SVG bodies. While technically this is easy to accomplish this does require a bit of custom code and HTML embeds, with proper div names to work properly. You can find the custom code for Matter.js and this effect in the Webflow custom code page settings, also take note to the CSS HTML Embed located on the page. This technique uses Matter.js, pathseg.min.js and dcomp.min.js to work properly. This uses element IDs to target the matterContainer and can be further modified to your own specifications. A wonderful example of how to add Matter.js to your Webflow sites in a fairly straight forward manner.

Browse similar cloneables

More from Keegan Leary

Profile →

Similar cloneables

All cloneables →