Skip to main content
If you have ideas, feature requests, or bug reports in regards to Webflow integration please send your feedback to us at help@spline.design.
Add interactive 3D content to your websites without the need to write code with the Webflow Integration called Spline Embed. You can control many of the interactions of your Spline scene directly within Webflow. This allows the use of Webflow Events (e.g.: click, hover, mouse position, scroll) to manipulate the position, rotation, and scale of the available Spline objects. To learn more about how to use it follow the steps and tips in this doc.

Exporting from Spline

  1. Open a Spline Scene.
  2. Click on โ€œExportโ€ in the top toolbar.
  3. Select โ€œSpline Viewerโ€
  4. Copy the scene link at the top. It should look like this: https://prod.spline.design/HqdfCmOueigtautT/scene.splinecode โ†’ feel free to grab this scene to test embedding Webflow.

Adding Spline Scene in Webflow

Inside the Webflow editor, follow these steps to add a Spline Scene:
  1. Click the โ€œ+โ€ icon on the left toolbar
  2. Under โ€œElementsโ€ search for the โ€œMediaโ€ section
  3. Click on โ€œSpline Sceneโ€
  4. There is a default Spline Scene included in the โ€œURLโ€ input field. Paste your own Spline URL (see previous step Exporting from Spline).
  5. Click on โ€œShow All Settingsโ€ to get access to all the Webflow settings.
To learn more about how to style and size the Spline Scene on your website, check the following docs from Webflow: image image

Controlling the Spline scene from Webflow

  1. Select โ€œโšก๏ธ โ€“ Interactionsโ€ in the right sidebar top corner.
  2. Create a new trigger (Element trigger or Page trigger), for this exercise select โ€œMouse move in viewportโ€ with the โ€œ+โ€ icon next to โ€œPage triggerโ€.
  3. Select the trigger.
  4. Add an animation (โ€+โ€ icon next to Mouse Animations).
  5. Open the animation with the โ€œโš™๏ธย โ€“ cogwheel iconโ€.
  6. At Mouse X Action click on the โ€œ+โ€ icon and select โ€œSplineโ€ at the โ€œIntegrationsโ€ section โ†’ This unlocks access to Spline objects.
  7. At 0% select the โ€œSplineโ€ object.
  8. At the bottom of the sidebar next to โ€œobjectโ€ select from the dropdown the object you would like to manipulate โ†’ โ€œGeometryโ€ in the case of the example in the video.
  9. Set the โ€œGeometryโ€ initial position, scale, and rotation, you need to define a value in order to take effect (default values will be ignored from the animation)
  10. Now select the Spline object at 100% and there you should be defined by how much should be the objectโ€™s position, rotation, and scale be transformed.
  11. Now preview the experience with the โ€œ๐Ÿ‘๏ธย โ€“ preview iconโ€ in the top toolbar.
  12. Done! Moving the mouse over the webpage should animate the Spline object.
image

Previewing Spline scene in Webflow

In Webflow following options are available to preview your Spline Scene interactions
  • Option 1 โ†’ Click on the โ€œ๐Ÿ‘๏ธย โ€“ Toggle Previewโ€ icon in the top toolbar
  • Option 2 โ†’ Publish the site in Webflow and load the page to see the Spline scene in action.

Update Spline scene in Webflow

1. In Spline

  1. Make an update in the Scene (e.g.: change the color of an object),
  2. Click on Export
  3. Select the Spline Viewer tab
  4. Click on Update โ†’ Wait until the updates get pushed

2. In Webflow

In the case of an already published Webflow project, just reload the website that contains the Spline Embed and your most recent Spline update will be visible.
To see the update in the Webflow Editor follow these steps:
  1. Select the Spline Scene.
  2. In the right sidebar select โ€œElement Settingsโ€
  3. At the โ€œSpline Scene Settingsโ€ section click on โ€œReload Spline Sceneโ€
  4. Done, the updates are live!

Best practices

  • Scene optimization โ†’ Learn to optimize your scene to make sure your scene loads quickly and runs efficiently on all sorts of devices. How to optimize your scene
  • Various screen sizes โ†’ To match your scene with responsive behaviours use the Screen Resize Event and match it with the breakpoints from your Webflow environment. Screen Resize Event