Skip to main content

Sound

Play an MP3 sound file.

AttributeTypeDefaultDescription
onSTRINGbothEvent that triggers the transition. It can be either show, hide or both
urlSTRINGAbsolute URL of the MP3 sound file to play
volumeINTEGER100Sound volume between 0 and 100, in percentage of the global volume level
Example
<behavior name="fx2" fx="sound" volume="50" url="https://example.com/sound.mp3" />