feat(anim): make animation time support speed as well
This commit is contained in:
@@ -81,8 +81,7 @@ Drawing and rendering
|
||||
Animations
|
||||
~~~~~~~~~~
|
||||
|
||||
- |uncheck| Use `anim` events to replace many callbacks with one
|
||||
- |uncheck| `lv_anim_time_to_speed` should work differently to remove
|
||||
- |check| `lv_anim_time_to_speed` should work differently to remove
|
||||
`style_anim_speed`. E.g. on large values of anim time store the
|
||||
speed. Besides all widgets should use the `style_anim` property.
|
||||
`anim` should clamp the time if it's calculated from speed, e.g
|
||||
|
||||
@@ -810,15 +810,6 @@ The animation time in milliseconds. Its meaning is widget specific. E.g. blink t
|
||||
<li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Ext. draw</strong> No</li>
|
||||
</ul>
|
||||
|
||||
### anim_speed
|
||||
The animation speed in pixel/sec. Its meaning is widget specific. E.g. scroll speed of label. See the widgets' documentation to learn more.
|
||||
<ul>
|
||||
<li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Default</strong> 0</li>
|
||||
<li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Inherited</strong> No</li>
|
||||
<li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Layout</strong> No</li>
|
||||
<li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Ext. draw</strong> No</li>
|
||||
</ul>
|
||||
|
||||
### transition
|
||||
An initialized `lv_style_transition_dsc_t` to describe a transition.
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user