PadlockRive Lock and Unlock Animation

InteractiveData BindingFree
Live
Tap the lock

A padlock that opens when you tap it. Any colour, and it can shake first.

Get the file

Runtime

.riv

Ready to use in your app or website.

Free

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 Padlock() {
  const { rive, RiveComponent } = useRive({
    src: '/padlock.riv',
    artboard: 'Padlock',
    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('bodyColor').value = 0xFF2C98A2;

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

Inputs: shakeFirst, shake, bodyColor, shackleColor. All on the Padlock view model.

More interactive

See all →