Gingerbread House

InteractiveData Binding$4.99

A gingerbread house that hops when you tap it, and the windows light up.

← PrevNext →
Live
Tap the house

Get the file

Runtime

.riv

Ready to use in your app or website.

Editable

.rev + .riv

Open it in the Rive editor and change anything. The .riv is included.

Learn to build it

Full access

Build this yourself, step by step. Every file in the library is included.

Courses from $119

Own a course? Sign in and every file is yours.

Use it in your own products and client work. Please don't resell or share the files themselves.

Use it on your site

import { useRive } from '@rive-app/react-canvas';

export function GingerbreadHouse() {
  const { rive, RiveComponent } = useRive({
    src: '/gingerbread-house.riv',
    artboard: 'Gingerbread House',
    stateMachines: 'State Machine',
    autoplay: true,
    autoBind: true,
  });

  // every input on this page is a view model property
  const vm = rive?.viewModelInstance;
  if (vm) vm.color('lightColor').value = 0xFFFDC947;

  return <RiveComponent style={{ width: '100%', height: 400 }} />;
}

Inputs: lightsOn, lightColor. All on the GingerbreadHouse view model.

More interactive

See all →