Server rendering
Copy as MarkdownEvery entry of the player can be imported in Node or on a server, and does nothing there. The package has no engines
field. Your text is rendered by the server as usual, and the motion starts in the browser.
- With
<rupa-player>andmarkup="keep", the HTML you render stays in the page for search engines. The player adds the design and the animation once the script runs. <RupaPlayer>is marked"use client": its children render on the server and the motion starts after hydration.- In a framework with a mount hook, import the element there (
onMount,onMounted) so the browser loads it.
See Next.js, Nuxt and SvelteKit for complete examples, and browser support for what each entry needs.