SIDEQUEST ELEMENTSby SideQuest Studio ↗

PRACTICAL RIVE INTEGRATION

How to change Rive text dynamically

Change animated text, fonts, colors, and title depth without replacing the Rive animation with a video.

Keep the words as data

SideQuest text and title files expose the TextMotion view model. Its text string supplies the words. The Rive file shapes and animates those words at runtime, so a headline can change when a user, route, or application state changes.

Use the web component

Set element.text to a new string. Set font, color, size, duration, and align attributes to update styling. For 3D-style titles, side-color, depth, and tilt shape the extrusion. The text editor includes four fonts; the title editor also includes Montserrat ExtraBold. The embedded fonts cover Latin and accented Latin characters.

Follow another element’s text

The source attribute accepts a selector for an existing element. The component observes that element’s text and copies later changes into Rive. Use one accessible representation of the words: the component provides a text alternative, and a hidden source avoids duplicate visible copies.

Choose looping or one shot

Looping defaults to on. A cycle animates in, holds for 1.6 seconds, animates out, then has a brief hidden seam. Set loop="false" to play once; replay() restarts the effect. Reduced motion keeps the complete text visible. A website kit saves your chosen words and settings, while the preset .riv retains sample defaults. Baking new defaults into a separate binary requires a Rive export.

<script type="module" src="https://thesidequest.studio/elements/text.js"></script>
<sq-text id="headline" preset="rise" text="Your next headline" loop></sq-text>
<script type="module">
await customElements.whenDefined("sq-text");
document.querySelector("#headline").text = "Fresh words, same motion";
</script>

Find an element ↗All integration guides