Opus Motion ★ Star on GitHub

UI · hotel-rating-card

Hotel rating card

A stay listing card: the photo wipes in and slowly pushes in, name and location slide up, stars fill one by one, the review score counts up, amenity icons pop in, the nightly price counts up and a Book button pulses.

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

Hotel rating card: three frames of the UI animation, start, middle and end
Hotel rating card — start, middle and end of the 7.0-second motion.

What Hotel rating card is for

Hotel, rental and resort promos, travel-booking app demos, "top-rated stay" reels, property / venue / restaurant rating cards — set the photo, name, stars, score, price and amenities.

  • hotel
  • travel
  • booking
  • rating
  • stars
  • review
  • price
  • amenities
  • resort
  • stay
  • accommodation
  • listing
  • card
  • ui

Details

Category
UI & product mockup animations
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
badge
Colour props
background card ink accent
Image props
src
Mood
photo, ui, night
Roles
subject

Use Hotel rating card in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add hotel-rating-card --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render hotel-rating-card --props '{"badge":"Top rated","background":"#E3EAF2","card":"#FFFFFF","ink":"#14233B","accent":"#E8553D","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export hotel-rating-card --as webm-alpha --props '{"badge":"Top rated","background":"#E3EAF2","card":"#FFFFFF","ink":"#14233B","accent":"#E8553D","src":""}'

React / Next.js

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

<MotionPlayer
  motion="hotel-rating-card"
  props={{
    badge: 'Top rated',
    background: '#E3EAF2',
    card: '#FFFFFF',
    ink: '#14233B',
    accent: '#E8553D',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="hotel-rating-card"
  props='{"badge":"Top rated","background":"#E3EAF2","card":"#FFFFFF","ink":"#14233B","accent":"#E8553D","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "hotel-rating-card",
      "props": {
        "badge": "Top rated",
        "background": "#E3EAF2",
        "card": "#FFFFFF",
        "ink": "#14233B",
        "accent": "#E8553D",
        "src": ""
      }
    }
  ]
}

Hotel rating card props

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

PropDefaultWhat it does
name"Harbor View Hotel"property name
location"Old Town · 4 min walk to the beach"location line
src""photo (public/ path or https URL); '' draws a procedural hotel scene
badge"Top rated"small tag on the photo ('' for none)
stars4star class 0-5 (halves allowed, e.g. 4.5)
score9.2review score that counts up (e.g. 9.2)
scoreLabel"Exceptional"word next to the score
reviews"1,284 reviews"review count text
price189nightly price (counts up)
currency"$"currency symbol in front of the price
priceLabel"per night"small caps line under the price
amenities[{"icon":"wifi","label":"Free Wi-Fi"},{"icon":"pool","label":"Pool"},{"icon":"breakfast…up to 6: {icon, label} — icon: wifi | pool | breakfast | parking | gym | spa | ac | bar | pets | beach | desk | kitchen | shuttle | coffee
cta"Book now"button text
background"#E3EAF2"page colour or 'transparent'
card"#FFFFFF"card colour
ink"#14233B"text colour
accent"#E8553D"icons, badge and button colour
startAt0frame the scene starts

Notes & credits

Technique sources:

  • original (round 3)