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 namedclickafter 400ms delay once - Example:
url(res:ambiance) infinite- Meaning to play the resource namedambianceon an infinite loop
button { align-self: center; background-color: coral; } button:active { audio: url(res:click); }