Search...
alt
Sets or gets a Lottie animation's alt text.
Description
A Lottie animation's alternative text is typically a relatively short phrase that describes what the animation depicts.
The alternative text is used:
- If the browser cannot display the animation.
- If the user is utilizing a screen reader.
- By search engines to understand what animations are on your site.
Type:
stringRead & Write, default value is An empty string
Was this helpful?
Get the Lottie animation's alt text
Copy Code
1let altText = $w('#myLottie').alt; // 'Alt text'
Set the Lottie animation's alt text
Copy Code
1$w('#myLottie').alt = 'Alt text';