Webflow sync, pageviews & more.
NEW

What are the best ways to optimize and add the spline and vectary visual tools in Webflow for website creation?

TL;DR
  • Embed Spline or Vectary via iframe in Webflow’s Embed element using custom URL parameters for UI control.
  • Optimize performance with lazy loading, limit embeds per page, resize responsively, and replace 3D on mobile with static media using Webflow’s visibility tools.

You can embed Spline or Vectary 3D tools into Webflow to create visually immersive, interactive experiences, but proper optimization is critical to site performance. Here's a breakdown of best practices for embedding, optimizing, and styling them effectively.

1. Use the Proper Embed Method

  • Spline: Copy the embed URL from the Spline “Share” section and use Webflow’s Embed element to paste the iframe.
  • Vectary: Go to the Vectary viewer, click “Embed”, and copy the iframe URL. Paste into a Webflow Embed element.
  • Both tools support custom camera settings and UI toggles in the URL—use query parameters to control them (e.g., ?ui=0 to hide UI).

2. Load the Embed Only When Needed

  • Use lazy loading techniques to delay loading of heavy 3D content:
  • Wrap it inside an Interaction-triggered wrapper (e.g., trigger on scroll or click).
  • Add loading="lazy" in the iframe tag.

3. Optimize Size and Placement

  • Place 3D embeds in limited sections, such as:
  • Hero sections or product showcases.
  • Avoid putting them above-the-fold on mobile, where performance is more constrained.
  • Use Webflow’s Aspect Ratio settings or Div Blocks with fixed height/width to ensure responsive behavior.

4. Disable UI Elements (If Not Needed)

  • Use embed parameters like:
  • Vectary: ?ui=0&light=0 to disable UI and extra lighting.
  • Spline: ?hideUI=1&autoplay=1 to make the scene cleaner and auto-animate.

5. Minimize Resource Use

  • Don’t load multiple scenes simultaneously—one embedded 3D view per page is optimal.
  • Ensure you compress textures and reduce polygon count in the original Spline or Vectary scene before publishing.

6. Use Conditional Visibility for Mobile

  • In Webflow, clone the section where the 3D embed lives.
  • Replace it with a static image or video for mobile, and use Webflow’s Responsive Visibility settings (hide/show based on device).

7. Defer Script Execution (Advanced)

  • If needed, you can wrap iframe embeds in custom JavaScript inside a Webflow Embed to activate after page load.
  • This reduces initial render-blocking—only do this if your team can manage code maintenance.

8. Test and Monitor Performance

  • Use Lighthouse in Chrome DevTools to assess impact of 3D embeds.
  • Check for:
  • Time to Interactive (TTI)
  • First Contentful Paint (FCP)
  • Any iframe blocking performance on mobile

Summary

To integrate Spline or Vectary effectively in Webflow, embed them using iframes with lazy loading, optimize scene design inside the 3D tool, and use Webflow’s responsive and conditional tools to control when and where they appear. Always prioritize speed and usability, especially on mobile.

Rate this answer

Other Webflow Questions