Large animations
Copy as MarkdownA .rupaplay file downloads and unpacks without blocking the page. Installing it then runs in one go: the markup is
rebuilt element by element, the CSS is parsed and checked rule by rule, and the player takes the animations over. The
animation itself is the CSS of the browser, so once installed a large file plays as smoothly as a small one.
A file holds at most 20,000 CSS rules. For a page with thousands of animated elements, put the animation in the HTML of the page instead of loading it as a file:
- The full snippet: the markup and CSS go into the page, so the browser reads them while it parses the page, with nothing to rebuild or check.
- Your own markup with
markup="keep": your markup stays in the page, so only the CSS of the file is installed.
Both ways are described in choose a way. The size of the player itself is on the size page.