8000 chore: add section about transitions (#350) · omaklog/nativescript-vue.org@9c55a14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c55a14

Browse files
chore: add section about transitions (nativescript-vue#350)
* Added the transition documentation for the manual router My first contibution so maybe you can edit it a little bit so it will work for the documentation. * Updated list type * Update content/docs/en/routing/manual-routing.md * Update content/docs/en/routing/manual-routing.md * Update content/docs/en/routing/manual-routing.md Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
1 parent 46f1bdf commit 9c55a14

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

content/docs/en/routing/manual-routing.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,37 @@ this.$navigateTo(Detail, {
115115

116116
For more information about the options that you can pass, see [`NavigationEntry`](https://docs.nativescript.org/api-reference/interfaces/_ui_frame_.navigationentry).
117117

118+
#### Specifying a transition
119+
120+
You can use any of the built-in transitions:
121+
122+
- curl (same as curlUp) (iOS only)
123+
- curlUp (iOS only)
124+
- curlDown (iOS only)
125+
- explode (Android Lollipop(21) and up only)
126+
- fade
127+
- flip (same as flipRight)
128+
- flipRight
129+
- flipLeft
130+
- slide (same as slideLeft)
131+
- slideLeft
132+
- slideRight
133+
- slideTop
134+
- slideBottom
135+
136+
For example:
137+
138+
```JavaScript
139+
this.$navigateTo(Detail, {
140+
transition: {
141+
name: "slideLeft",
142+
duration: 300,
143+
curve: "easeIn"
144+
},
145+
});
146+
```
147+
148+
118149
#### Navigating within a frame
119150

120151
Each [`<Frame>`](/en/docs/elements/components/frame) element has its own navigation stack. If you are using [multiple frames](/en/docs/elements/components/frame#multiple-frames), you may want to specify in which frame the navigation will occur. For example, having a button in the side bar that changes the page in the main area. You can do this by adding the `frame` option:

0 commit comments

Comments
 (0)
0