Properties can be a getter and setter too.   var sprite = { alpha: 1, visible: true, get autoAlpha() { return this.alpha; }, set autoAlpha(value) { this.alpha = value; this.visible = (value != 0); } }; sprite.autoAlpha = 0; console.log(sprite.visible); // => false sprite.autoAlpha = 0.1; console.log(sprite.visible); // => true   There's a bunch of different ways to create getters and setters. Look at the code for box 5. When GSAP sees a function t
    • Like
    3