redox-os / orbtk

The Rust UI-Toolkit.
MIT License
3.78k stars 188 forks source link

Animations #116

Open FloVanGH opened 4 years ago

FloVanGH commented 4 years ago

Context

At the moment visual appearance is very static. Visual elements could also be in motion by user input e.g. move the scroll bar. What is needed is the possibility to move visual elements from code. This would make the appearance of an OrbTk more attractive and give us the possibility to direct the view of an user to important elements on a view.

Problem description & Solution

It should be possible to animate numeric values of widgets like position, size, rotation and colors. It should be possible to define a duration in ms and an easing curve for each animation.

millscale commented 4 years ago

I found this last night, I think it might help?

https://crates.io/crates/vect

I will start researching tweening libraries

millscale commented 4 years ago

@FloVanGH

This seems to be a quite nice tweening library, and it wraps easer.rs. I will try and check it out today if I get a chance!

https://crates.io/crates/pareen

FloVanGH commented 4 years ago

@millscale thank you :-). The crate looks promising. If you need some input let me know.