Calm motion: animations on this site only fade, with no movement
Price ticker
Prices that move across the screen, with the change of each
Shows the latest prices of stocks, coins, or products in a line that scrolls. It uses the marquee, so it has a Pause button and stops while the pointer is over it.
Basic
itemsis a list of prices. Each item has asymbol, aprice, and achangein percent.- Each change has an arrow and a sign: ▲ and "+" for a rise, ▼ and "−" for a fall, and ■ for no change. A fall is also red, but the arrow and the sign carry the meaning.
- With
currency, the price shows in that currency. Without it, the price is a plain number with two decimals.localesets the format. speedsets the speed in pixels per second (default 40). If the reader asks for reduced motion, the line does not move.- The ticker is a region with the name "Prices". Change it with
labelsor a label pack:title. The Pause and Play words come from the marquee.
Usage
ts
import { BlessPriceTicker } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
items* | BlessTick[] | — | |
currency | string | — | ISO 4217 code; without it, the price is a plain number |
locale | string | "en" | |
speed | number | 40 | px per second |
labels | Partial<{ title: string; }> | — |