Skip to content

Commit

Permalink
🐛 Fix "optionable" in docs for ct.transition
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Mar 12, 2020
1 parent e4ee2c1 commit 57a88f2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/data/ct.libs/transition/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ All the methods have optional arguments and return a promise that resolves when

## `ct.transition.fadeOut(duration, color)`

The beginning of a fading transition, which paints the whole screen through time. The arguments `duration` and `color` are optionable, and default to `500` (0.5 seconds) and `0x000000` (black color).
The beginning of a fading transition, which paints the whole screen through time. The arguments `duration` and `color` are optional, and default to `500` (0.5 seconds) and `0x000000` (black color).

## `ct.transition.fadeIn(duration, color)`

The end of a fading transition. The arguments `duration` and `color` are optionable, and default to `500` (0.5 seconds) and `0x000000` (black color).
The end of a fading transition. The arguments `duration` and `color` are optional, and default to `500` (0.5 seconds) and `0x000000` (black color).

## `ct.transition.slideOut(duration, direction, color)`

Expand All @@ -19,7 +19,7 @@ The beginning of a sliding transition. A rectangle will smoothly move from one e
- `'top'`;
- `'bottom'`.

The arguments `duration` and `color` are optionable, and default to `500` (0.5 seconds) and `0x000000` (black color).
The arguments `duration` and `color` are optional, and default to `500` (0.5 seconds) and `0x000000` (black color).

## `ct.transition.slideIn(duration, direction, color)`

Expand All @@ -32,20 +32,20 @@ The end of a sliding transition. A rectangle will smoothly move from one edge of
- `'top'`;
- `'bottom'`.

The arguments `duration` and `color` are optionable, and default to `500` (0.5 seconds) and `0x000000` (black color).
The arguments `duration` and `color` are optional, and default to `500` (0.5 seconds) and `0x000000` (black color).

## `ct.transition.circleOut(duration, color)`

The beginning of a circle-shaped transition. This will create a circle that smoothly grows from a size of a point to cover the whole screen in a given opaque color. The arguments `duration` and `color` are optionable, and default to `500` (0.5 seconds) and `0x000000` (black color).
The beginning of a circle-shaped transition. This will create a circle that smoothly grows from a size of a point to cover the whole screen in a given opaque color. The arguments `duration` and `color` are optional, and default to `500` (0.5 seconds) and `0x000000` (black color).

## `ct.transition.circleIn(duration, color)`

The end of a circle-shaped transition. This will create a circle that covers the whole screen in a given opaque color but smoothly shrinks to a point. The arguments `duration` and `color` are optionable, and default to `500` (0.5 seconds) and `0x000000` (black color).
The end of a circle-shaped transition. This will create a circle that covers the whole screen in a given opaque color but smoothly shrinks to a point. The arguments `duration` and `color` are optional, and default to `500` (0.5 seconds) and `0x000000` (black color).

## `ct.transition.scaleOut(duration, scaling, color)`

Scales the camera by a given coefficient while also fading to a specified color (similar to `ct.transition.fadeOut`). The default `scaling` is `0.1`, which will zoom in 10 times. Setting values larger than `1` will zoom out instead. The arguments `duration` and `color` are optionable, and default to `500` (0.5 seconds) and `0x000000` (black color).
Scales the camera by a given coefficient while also fading to a specified color (similar to `ct.transition.fadeOut`). The default `scaling` is `0.1`, which will zoom in 10 times. Setting values larger than `1` will zoom out instead. The arguments `duration` and `color` are optional, and default to `500` (0.5 seconds) and `0x000000` (black color).

## `ct.transition.scaleIn(duration, scaling, color)`

Scales the camera by a given coefficient and turns back to normal, while also fading in from a specified color (similar to `ct.transition.fadeIn`). The default `scaling` is `0.1`, which will zoom in 10 times. Setting values larger than `1` will zoom out instead. The arguments `duration` and `color` are optionable, and default to `500` (0.5 seconds) and `0x000000` (black color).
Scales the camera by a given coefficient and turns back to normal, while also fading in from a specified color (similar to `ct.transition.fadeIn`). The default `scaling` is `0.1`, which will zoom in 10 times. Setting values larger than `1` will zoom out instead. The arguments `duration` and `color` are optional, and default to `500` (0.5 seconds) and `0x000000` (black color).

0 comments on commit 57a88f2

Please sign in to comment.