scroll_rs/common.rs
1#[derive(Clone, PartialEq)]
2pub enum Behavior {
3 Auto,
4 Instant,
5 Smooth,
6}
7
8/// Default CSS style for the scroll-to-top button.
9pub const SCROLL_TO_TOP_STYLE: &str =
10 "position: fixed; bottom: 1rem; right: 1rem; background-color: #3b82f6; color: #ffffff; padding: 0.75rem; border-radius: 50%; cursor: pointer; transition: background-color 300ms ease-in-out;";