JSFiddle - React, Tailwind, and code Playground

HTML

<canvas id="foo" width="400" height="400" style="background-color:#EEE"></canvas>

JavaScript

var stage = new createjs.Stage("foo");
var circle = stage.addChild(new createjs.Shape()).set({x:100,y:100});
circle.graphics.beginFill("#F00").drawCircle(0,0,30);
stage.update();

stage.onMouseDown = function() {
    createjs.Tween.get(circle, {override:true})
        .to({alpha:1})
        .to({alpha:0},2000)
        .to({alpha:1})
    // this is just so we can see the animation working:
        .onChange = function() { stage.update();window.alert("a") };
}