# Screen `[Client]`

Screen module is a module to control screen effects such as fades, transitions, and visual displays. It provides simple functions for creating smooth visual transitions in your game.

## JO Functions

### jo.screen.fadeIn()

Fades the screen in with specified duration <br>

#### Syntax

```lua
jo.screen.fadeIn(duration, needWait)
```

#### Parameters

`duration` : _integer_ `[Optional]`
> Duration of the fade in ms <br> default: 500
>

`needWait` : _boolean_ `[Optional]`
> Wait for the end of the fade <br> default: false
>

---

### jo.screen.fadeOut()

Fades the screen out with specified duration <br>

#### Syntax

```lua
jo.screen.fadeOut(duration, needWait)
```

#### Parameters

`duration` : _integer_ `[Optional]`
> Duration of the fade in ms <br> default: 500
>

`needWait` : _boolean_ `[Optional]`
> Wait for the end of the fade <br> default: true
>
