mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #922 from davep/css-docs-review-animation
CSS docs review - Animation
This commit is contained in:
@@ -5,7 +5,7 @@ Ths chapter discusses how to use Textual's animation system to create visual eff
|
||||
|
||||
## Animating styles
|
||||
|
||||
Textual's animator can change an attribute from one value to another in fixed increments over a period of time. You can apply animations to [styles](styles.md) such `offset` to move widgets around the screen, and `opacity` to create fading effects.
|
||||
Textual's animator can change an attribute from one value to another in fixed increments over a period of time. You can apply animations to [styles](styles.md) such as `offset` to move widgets around the screen, and `opacity` to create fading effects.
|
||||
|
||||
Apps and widgets both have an [animate][textual.app.App.animate] method which will animate properties on those objects. Additionally, `styles` objects have an identical `animate` method which will animate styles.
|
||||
|
||||
@@ -77,7 +77,7 @@ You can specify which easing method to use via the `easing` parameter on the `an
|
||||
|
||||
## Completion callbacks
|
||||
|
||||
You can pass an callable to the animator via the `on_complete` parameter. Textual will run the callable when the animation has completed.
|
||||
You can pass a callable to the animator via the `on_complete` parameter. Textual will run the callable when the animation has completed.
|
||||
|
||||
## Delaying animations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user