Add a Spline scene to your Webflow site
Add a Spline scene to your Webflow site and animate it with interactions.
Spline is a tool for designing interactive 3D scenes. The Spline integration lets you paste your Spline scene and its events directly into Webflow. You can also animate your Spline objects in Webflow with Webflow’s native interactions.
In this lesson, you’ll learn:
- How to create a Spline scene
- How to add your Spline scene to your Webflow site
- How to animate your Spline scene in Webflow
How to create and export a Spline scene
First, you’ll need to create a scene in Spline. To do so, go to Spline, create an account, and start designing! Check out Spline’s documentation or video tutorials for more information about how to design.
Once you have your scene created, you can export your scene:
- Click Export in the Spline Editor toolbar
- Go to Code Export
- Copy the link at the top of the Overview tab (the link will have a “.splinecode” extension)
How to add your Spline scene to your Webflow site
Once you created and exported your Spline scene, you can add the scene to your Webflow site. Webflow has a native Spline scene element, which you can style like any other element (e.g., position, sizing, etc.).
To add your Spline scene to your Webflow site:
- Go to Add panel > Media
- Drag a Spline scene element onto the canvas
- Go to Element settings panel > Spline scene settings
- Paste the Spline scene link (i.e., the link with a “.splinecode” extension) into the URL field
How to animate your Spline scene in Webflow
Now that your scene is integrated into your Webflow site, you can animate it with Webflow’s native interactions.
To animate a Spline scene object:
- Select the Spline scene on the canvas
- Go to the Interactions panel
- Choose an Element trigger or Page trigger
- Follow the instructions for setting a custom animation up to Step 6
- Choose the Spline animation from the Actions dropdown
- Choose the object from Spline > Object dropdown
Then, you can animate the Spline scene as you like. You can set the position, rotation, and scale (on all X, Y, and Z axes) of that object in the animation timeline. You can also adjust your action targets to determine which elements or triggers the animation affects.