Integrating with Webflow
Webflow integration is currently a beta feature. Please send your feedback to us at help@spline.design (or within the in-app feedback panel) if you have ideas, feature requests, or bug reports.
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
Open a Spline Scene.
Click on βExportβ in the top toolbar.
Select βSpline Viewerβ
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:
Click the β+β icon on the left toolbar
Under βElementsβ search for the βMediaβ section
Click on βSpline Sceneβ
There is a default Spline Scene included in the βURLβ input field. Paste your own Spline URL (see previous step Exporting from Spline).
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:
Style Panel Overview in Webflow
Element Settings Panel in Webflow
Controlling the Spline scene from Webflow
Spline Scenes in Webflow is a Beta feature, this walkthrough showcases a simple example, more documentation from Webflow coming soon!
Select ββ‘οΈ β Interactionsβ in the right sidebar top corner.
Create a new trigger (Element trigger or Page trigger), for this exercise select βMouse move in viewportβ with the β+β icon next to βPage triggerβ.
Select the trigger.
Add an animation (β+β icon next to Mouse Animations).
Open the animation with the ββοΈ β cogwheel iconβ.
At Mouse X Action click on the β+β icon and select βSplineβ at the βIntegrationsβ section β This unlocks access to Spline objects.
At 0% select the βSplineβ object.
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.
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)
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.
Now preview the experience with the βποΈ β preview iconβ in the top toolbar.
Done! Moving the mouse over the webpage should animate the Spline object.
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
Make an update in the Scene (e.g.: change the color of an object),
Click on Export
Select the Spline Viewer tab
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:
Select the Spline Scene.
In the right sidebar select βElement Settingsβ
At the βSpline Scene Settingsβ section click on βReload Spline Sceneβ
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.
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.