mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 15:14:35 +00:00
Add support for animating color properties
This commit is contained in:
parent
be75cb2b21
commit
b8ca0fe3c9
9 changed files with 91 additions and 2 deletions
|
@ -40,6 +40,7 @@ component ButtonRectangle := Rectangle {
|
|||
color: black;
|
||||
}
|
||||
color: { button_area.pressed ? red : #5898; }
|
||||
animate color { duration: 500; }
|
||||
animate x {
|
||||
duration: 200;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue