
基礎動畫
Upload progress card
@opus-motion-library/upload-progress
A file card with an extension badge, file name and size: the progress bar fills with stop-and-go speed and a live percentage, then turns green with a check at 100%. Enters and leaves so it loops.
安裝
node cli/mgl.mjs add upload-progress --to <your-project>/src適用情境
- 適合
- Upload / download / export states, file-sharing and cloud-storage product demos, "your file is being processed" beats, app-store style screenshots.
規格
- 長度
- 180f · 6s
- 長度類型
- 可延長
- FPS
- 30
- 風格
- ui
- 授權
- MIT
Props(13)
fileNamestring= "brand-guidelines.pdf"file name (its extension becomes the badge)
fileSizenumber= 24.6total size as a number (shown as "x of y")
sizeUnitstring= "MB"unit label after the size (MB, KB, GB)
statusLabelstring= "Uploading…"status text while uploading
doneLabelstring= "Upload complete"status text when finished
speedLabelstring= "3.2 MB/s"optional speed text next to the status (empty to hide)
showCancelboolean= trueshow a small "Cancel" link while uploading
backgroundstring= "#EEF1F7"frame colour, or "transparent" to overlay content
cardColorstring= "auto"card colour, or "auto"
inkstring= "#1B2233"text colour
accentstring= "#4F6BFF"progress colour
doneColorstring= "#18B26B"colour of the finished state
fontFamilystring= "auto"CSS font family, or "auto"