-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commits brings now full support for transition, adding them to the scenes.
- Loading branch information
Showing
7 changed files
with
167 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Scene - Add transition | ||
|
||
## Description | ||
|
||
Adds a fade in transition to the scenes when entering the scene. | ||
|
||
## Syntax | ||
|
||
```js | ||
scene.addTransition(scene, { duration: 1000 }) | ||
``` | ||
|
||
## Parameters | ||
|
||
- `scene`: The scene configurations from the `init` function. | ||
- `duration`: The duration of the transition. | ||
|
||
## Return value | ||
|
||
This function will return the scene configurations if the addition was successful, otherwise, it will execute `process.exit(1)` to terminate the generation process. | ||
|
||
## Platform support | ||
|
||
- [x] Android | ||
- [ ] iOS | ||
- [ ] Windows | ||
- [ ] Linux distros | ||
- [ ] MacOS | ||
- [ ] Web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters