Opus Motion ★ Star on GitHub

Documents · form-fill-submit

Form fill and submit

A form card fills itself: fields take focus and type their values with a blinking caret, a checkbox ticks, a cursor glides to the button and clicks, the button spins and the card becomes a success state.

A free, MIT-licensed document animation from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Form fill and submit: three frames of the document animation, start, middle and end
Form fill and submit — start, middle and end of the 10.0-second motion.

What Form fill and submit is for

Sign-up / contact / booking flow demos, "it only takes seconds" beats, SaaS onboarding and landing-page explainers.

  • form
  • signup
  • submit
  • typing
  • input
  • checkbox
  • cursor
  • success
  • onboarding
  • ui
  • booking
  • contact

Details

Category
Document, form & report animations
Length
10.0 s (300 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
title
Colour props
background card ink accent
Mood
ui
Roles
subject

Use Form fill and submit in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add form-fill-submit --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render form-fill-submit --props '{"title":"Get in touch","background":"#EAE6DD","card":"#FFFFFF","ink":"#1D1C25","accent":"#3B5BFF"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export form-fill-submit --as webm-alpha --props '{"title":"Get in touch","background":"#EAE6DD","card":"#FFFFFF","ink":"#1D1C25","accent":"#3B5BFF"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="form-fill-submit"
  props={{
    title: 'Get in touch',
    background: '#EAE6DD',
    card: '#FFFFFF',
    ink: '#1D1C25',
    accent: '#3B5BFF',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="form-fill-submit"
  props='{"title":"Get in touch","background":"#EAE6DD","card":"#FFFFFF","ink":"#1D1C25","accent":"#3B5BFF"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "form-fill-submit",
      "props": {
        "title": "Get in touch",
        "background": "#EAE6DD",
        "card": "#FFFFFF",
        "ink": "#1D1C25",
        "accent": "#3B5BFF"
      }
    }
  ]
}

Form fill and submit props

12 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
title"Get in touch"form heading
fields[{"label":"FULL NAME","value":"Alex Morgan"},{"label":"EMAIL","value":"alex@example.com…array of {label, value}; each value is typed in (up to 6 fields)
checkboxLabel"I agree to the terms"checkbox text (empty removes the checkbox)
buttonLabel"SUBMIT"button text
successTitle"Thank you!"heading of the success state
successText"We will be in touch shortly."line under the success heading
background"#EAE6DD"backdrop colour or 'transparent'
card"#FFFFFF"form card colour
ink"#1D1C25"text colour
accent"#3B5BFF"focus ring, checkbox, button and success colour
speed1typing speed multiplier (long text speeds up automatically to stay in about 4 s)
startAt6frame the first field starts

Notes & credits

Technique sources:

  • original (round 3)