Creates an instance of a Volatile.
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts | 
            
            
            object | 
                
                    
                        optional
                    
                    
                        
                    
                
                 An options object to specify to style and behaviour of the modal. 
  | 
        
- See:
 
Example
const app = new PIXIApp({
    view: canvas,
    width: 900,
    height: 250
}).setup().run()
const button = new Button({
    label: 'Volatile!',
    action: () => {
        new Volatile({
            object: button,
            direction: 'right',
            destroyOnComplete: false
        })
    }
})
app.scene.addChild(button)