Calm motion: animations on this site only fade, with no movement
Lesson video
A lesson video with notes at points in time that take you back to that point
Lets a learner watch a lesson and keep notes that link to the right moment. For a video alone, use the video.
Basic
- Soft light from the left: no hard shadows.
- Slow push in. Try this for the product shot.
src,title, andposterset the video. It uses the controls of the browser.captionsis a WebVTT file with the captions, andcaptions-langis its language. Give captions, so people who cannot hear the lesson can follow it.v-modelis the list of notes. Each note has anid, the pointatin seconds, and atext.- The button under the note box shows the time now, as in "Add a note at 1:23". The notes sort by time.
- The time of a note is a button. It moves the video to that point and puts the focus on the video.
- On a narrow screen, the notes go below the video.
- Change the words with
labelsor a label pack. The API table lists the keys.
Usage
ts
import { BlessLessonVideo } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
src* | string | — | |
title* | string | — | |
poster | string | — | |
captions | string | — | a WebVTT file with the captions |
captionsLang | string | — | |
labels | Partial<{ notes: string; write: string; add: (time: string) => string; go: (time: string) => string; remove: (time: string) => string; empty: string; }> | — | |
modelValue | BlessVideoNote[] | [] |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: BlessVideoNote[]] |