You might have to call layer.drawScene()
or stage.draw()
to update the canvas. On click
and during tweens it gets called automatically.
Your modified code would look like that:
greyBack.on('mousemove', function() {
var mousePos = stage.getMousePosition();
var x = (mousePos.x) - (stage.getWidth());
var y = (mousePos.y) - (stage.getHeight());
shadow1.setAttrs({
x: [x*(-1)],
y: [y*(-1)],
})
layer.drawScene(); //Or stage.draw(); - I don't know how you grouped your shapes ;)
});