I'm trying to do something really simple with TweenJS, which after using GSAP I find less intuitive. Just want to tween a div - already set up to contain an image - with CSS/HTML:
<script type="text/javascript" src="https://code.createjs.com/easeljs-0.8.2.min.js"></script>
<script type="text/javascript" src="https://code.createjs.com/tweenjs-0.6.2.min.js"></script>
<script>
function init() {
stage = new createjs.Stage("canvas1");
var txt1 = document.getElementById("Div_txt1");
createjs.Tween.get(txt1).to({opacity: 0}, 1000);
}
</script>
<body onload="init();">
<canvas id="canvas1" width="300" height="250"></canvas>
</body>
</html>
But this doesn't work and throws no errors.