Css Style Object

class Example extends Phaser.Scene
{
    create ()
    {
        const style = {
            'background-color': 'lime',
            width: '220px',
            height: '100px',
            font: '48px Arial',
            'font-weight': 'bold'
        };

        const element = this.add.dom(400, 300, 'div', style, 'Phaser 3');

        // this.tweens.add({
        //     targets: element,
        //     _y: 600,
        //     _alpha: 0.5,
        //     angle: 200,
        //     duration: 3000,
        //     scaleX: 2,
        //     scaleY: 2,
        //     ease: 'Sine.easeInOut',
        //     loop: -1,
        //     yoyo: true
        // });

        // this.add.image(400, 300, 'einstein');
    }
}

const config = {
    type: Phaser.AUTO,
    parent: 'phaser-example',
    width: 800,
    height: 600,
    backgroundColor: '#2d2d2d',
    dom: {
        createContainer: true
    },
    scene: Example
};

const game = new Phaser.Game(config);