orbtk icon indicating copy to clipboard operation
orbtk copied to clipboard

Animations

Open FloVanGH opened this issue 4 years ago • 3 comments

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.

FloVanGH avatar Dec 09 '19 21:12 FloVanGH

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

https://crates.io/crates/vect

I will start researching tweening libraries

millscale avatar Dec 10 '19 08:12 millscale

@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

millscale avatar Dec 10 '19 08:12 millscale

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

FloVanGH avatar Dec 10 '19 10:12 FloVanGH