Skip to main content

CURSOR_CSS

Constant CURSOR_CSS 

Source
pub const CURSOR_CSS: &str = r#"
.dioxus-type-animation__type::after {
  content: '|';
  animation: dioxus-type-animation__cursor 1.1s infinite step-start;
}

@keyframes dioxus-type-animation__cursor {
  50% {
    opacity: 0;
  }
}
"#;
Expand description

CSS used by TypeAnimation when cursor is enabled.

The component injects this stylesheet automatically. It is also exported so applications can include it globally if they prefer.