unicorn-studio-sveltekit-starter Svelte Themes

Unicorn Studio Sveltekit Starter

Unicorn Studio SvelteKit Starter

A modern SvelteKit starter template for previewing Unicorn Studio animation projects.


Features

  • Plug-and-play preview for your Unicorn Studio exported scenes
  • Uses UnicornStudio.js via CDN for zero-config embedding
  • Example scene included: De_becker_code_hero.json
  • Clean, responsive, and accessible UI
  • Easily extensible for multiple scenes or a gallery

Getting Started

  1. Clone this repo:
    git clone https://github.com/dixiekun/unicorn-studio-sveltekit-starter.git
    cd unicorn-studio-sveltekit-starter
    
  2. Install dependencies:
    npm install
    
  3. Run the dev server:
    npm run dev -- --open
    
  4. Preview your Unicorn Studio scene!
    • The sample scene is loaded from /static/unicorn-studio/De_becker_code_hero.json.
    • Open http://localhost:5173/ to view.

Adding Your Own Scenes

  1. Export your scene from Unicorn Studio as a JSON file.
  2. Place the file in static/unicorn-studio/ (e.g., static/unicorn-studio/my_scene.json).
  3. Edit src/routes/+page.svelte to reference your new file:
    filePath: '/unicorn-studio/my_scene.json',
    
  4. Restart the dev server if needed, and your new scene will appear!

Project Structure

  • src/routes/+page.svelte — Main page, loads and displays the Unicorn Studio scene
  • static/unicorn-studio/ — Place your exported scene JSON files here
  • project-overview.md — Project documentation

Credits


License

This starter is provided for personal and educational use. See Unicorn Studio's license for SDK usage terms.

Top categories

Loading Svelte Themes