Create derived signals that are animated versions of the original signal
```rust use leptos::; use leptos_animation::;
pub fn Counter(cx: Scope) -> impl IntoView { AnimationContext::provide(cx);
let (value, set_value) = create_signal(cx, 0.0);
let animated_value = create_animated_signal(cx, move || value.get().into(), tween_default);
let clear = move |_| set_value.set(0.0);
let decrement = move |_| set_value.update(|value| *value -= 1.0);
let increment = move |_| set_value.update(|value| *value += 1.0);
view! { cx,
<main class="simple">
<button on:click=clear>"Clear"</button>
<button on:click=decrement>"-1"</button>
<button on:click=increment>"+1"</button>
<div>"Value: " {value} <br/> "Animated value: " {animated_value}</div>
</main>
}
} ```
window.request_animation_frame()
: only when there are animations playing and only once per frame
even if there are multiple animated signals running.