RavenRS · Rust GUI

ScrollLinked

Edit and run the ScrollLinked RavenRS example in your browser. Explore its Rust code and download a Cargo project for desktop and WebAssembly.

One declarative Rust interface, GPU rendering, reactive state and semantic design tokens. Free and open source under MIT OR Apache-2.0.

Rust source

fn scroll_linked() -> impl View {
    let card = |text: &'static str| {
        ScrollLinked::new(Card::new(Text::new(text)), ScrollLink::fade_in().range(ScrollRange::Enter))
    };
    ScrollView::new((
        card("Each card fades in"),
        card("and rises into place"),
        card("as it enters the view,"),
        card("following the scroll"),
        card("and not a clock."),
    ))
    .spacing(80.0)
    .height(220.0)
}

The interactive preview loads when JavaScript and WebGPU or WebGL2 are available. You can read the guide and examples here at any time.

More examples