slint icon indicating copy to clipboard operation
slint copied to clipboard

font-size animation is broken

Open cppdev123 opened this issue 3 years ago • 2 comments
trafficstars

font-size animation is broken (at least for Text) when adding font-size to animate and changing it the Text will remain in the same size I had to use a float property to animate it and bound the font-size to the value of this property multiplied by px

cppdev123 avatar Jun 11 '22 16:06 cppdev123

Do you have a small example? I do not get what you are doing exactly.

hunger avatar Jun 17 '22 18:06 hunger

Looks like it is working.

I tried this example, and it animates:

_ := Text {
 text: "Hello World";
 font-size: 15px;
 animate font-size { duration: 1s; }
 TouchArea { clicked => { root.font-size = 50px; } }
}

online editor

ogoffart avatar Jun 27 '22 08:06 ogoffart

Closed as the bug cannot be reproduced

ogoffart avatar Nov 29 '22 12:11 ogoffart