---
title: "OpacityState | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Class OpacityState

##### Index

### Constructors[](#constructors)

[constructor](#constructor)

### Properties[](#properties)

[opacity](#opacity) [placed](#placed)

### Methods[](#methods)

[isHidden](#ishidden)

## Constructors[](#constructors-1)

### constructor[](#constructor)

-   new OpacityState(  
        prevState: OpacityState,  
        increment: number,  
        placed: boolean,  
        skipFade?: boolean | null,  
    ): OpacityState[](#constructoropacitystate)
    
    #### Parameters
    
    -   prevState: OpacityState
    -   increment: number
    -   placed: boolean
    -   `Optional`skipFade: boolean | null
    
    #### Returns OpacityState
    

## Properties[](#properties-1)

### opacity[](#opacity)

opacity: number

### placed[](#placed)

placed: boolean

## Methods[](#methods-1)

### isHidden[](#ishidden)

-   isHidden(): boolean[](#ishidden-1)
    
    #### Returns boolean
