attributeChangedCallback(name, oldVal, newVal) {
        if (oldVal !== newVal) {
            switch(name) {
                case 'offset':
                    this.offset = newVal
                    break;
                case 'direction':
                    this.direction = newVal
                    break;
                case 'delay':
                    this.delay = newVal
                    break;
                case 'speed':
                    this.speed = newVal
                    break;
            }
        }
    }
// To do when a attribute changed
To do when a attribute changed
To do when a attribute changed
attributeChangedCallback(name, oldVal, newVal) {
        if (oldVal !== newVal) {
            switch(name) {
                case 'offset':
                    this.offset = newVal
                    break;
                case 'direction':
                    this.direction = newVal
                    break;
                case 'delay':
                    this.delay = newVal
                    break;
                case 'speed':
                    this.speed = newVal
                    break;
            }
        }
    }
attributeChangedCallback ( name , oldVal , newVal ) { if ( oldVal !== newVal ) { switch ( name ) { case 'offset' : this . offset = newVal break ; case 'direction' : this . direction = newVal break ; case 'delay' : this . delay = newVal break ; case 'speed' : this . speed = newVal break ; } } }
To do when a attribute changed
To do when a attribute changed