Merge pull request #922 from davep/css-docs-review-animation

CSS docs review - Animation
This commit is contained in:
Dave Pearson
2022-10-15 22:22:12 +01:00
committed by GitHub

View File

@@ -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