feat: slight animation changes

This commit is contained in:
2025-05-23 23:42:36 +02:00
parent f1c345af4f
commit 2b54d325c5
3 changed files with 11 additions and 6 deletions

View File

@@ -53,8 +53,7 @@ a {
}
a:hover,
a:active,
a:focus {
a:active {
color: var(--subtext0)
}
@@ -83,8 +82,7 @@ a:focus {
}
.navbar-theme:hover,
.navbar-theme:active,
.navbar-theme:focus {
.navbar-theme:active {
cursor: pointer;
}

View File

@@ -24,6 +24,6 @@ pub fn Navbar() -> Element {
}
}
}
div { class: "content-wrapper", AnimatedOutlet::<Route> {} }
div { class: "content-wrapper", {} }
}
}

View File

@@ -12,7 +12,7 @@ use dioxus_motion::prelude::*;
#[derive(Debug, Clone, Routable, PartialEq, MotionTransitions)]
#[rustfmt::skip]
pub enum Route {
#[layout(Navbar)]
#[layout(MotionTransitionBuilder)]
#[route("/")]
#[transition(Fade)]
Home {},
@@ -40,3 +40,10 @@ pub enum Route {
#[route("/:..route")]
PageNotFound { route: Vec<String> },
}
#[component]
pub fn MotionTransitionBuilder() -> Element {
rsx! {
AnimatedOutlet::<Route> {}
}
}