Audio
Plays audio in certain situations. This property is unique to React Unity and does not exist in standard CSS.
The property must have the format <url> <delay> <iteration-count | infinite>
- Example:
url(res:click) 400ms 1
- Meaning to play the resource namedclick
after 400ms delay once - Example:
url(res:ambiance) infinite
- Meaning to play the resource namedambiance
on an infinite loop
button { align-self: center; background-color: coral; } button:active { audio: url(res:click); }