You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guide/animations.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ NativeScript exposes a simple yet powerful API to allow animating almost every n
8
8
9
9
For your convenience, there are two popular ways of creating animations:
10
10
11
-
-[Declarative](#animating-ui-componentsviews-with-css-in-nativescript) - easy and familiar CSS3 animations API
12
-
-[Imperative](#animating-ui-componentsviews-with-code-in-nativescript) - take full control of any animation by calling animation methods directly with code
11
+
-[Declarative](#animating-with-css) - easy and familiar CSS3 animations API
12
+
-[Imperative](#animating-with-code) - take full control of any animation by calling animation methods directly with code
13
13
14
-
## Declarative: Animating UI components with CSS
14
+
## Declarative: Animating UI components with CSS {#animating-with-css}
15
15
16
16
CSS animations are based on the [CSS3 animations API](http://www.w3schools.com/css/css3_animations.asp) standard. You can use them to animate almost every native view without even having to know JavaScript. You can use multiple frames and change the animation direction. With CSS animations, you can separate the animation code from your app logic if desired.
17
17
@@ -331,7 +331,7 @@ The `Button` component has a built-in special state `highlighted` to for the `to
331
331
///
332
332
-->
333
333
334
-
## Imperative: Animating UI components with code
334
+
## Imperative: Animating UI components with code {#animating-with-code}
335
335
336
336
The easiest way to animate a single [View](https://docs.nativescript.org/api/class/View) is by using the `View.animate` method which accepts an [`AnimationDefinition`](https://docs.nativescript.org/api/interface/AnimationDefinition). It immediately starts and returns its finished promise.
0 commit comments