ericdrowell / KineticJS

KineticJS is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://www.kineticjs.com
3.98k stars 752 forks source link

Image inside group inside invisible layer sometimes visible #955

Open nmehlei opened 10 years ago

nmehlei commented 10 years ago

Hi, My layer is starting with an opacity of 0 (for animation purposes). Inside of that layer is a group with opacity of 0.5 and inside of that is an Image shape. Sometimes (I wasn't able to establish a pattern yet, seems spontaneous) the image shape is being displayed even though it should not because of the layers invisibility (opacity == 0).

This results in the shape being fully displayed before the containing layer would be fully faded in, which obviously invalidates a fade in animation. Is this expected behaviour with groups, as in they can have more effective opacity than their layer or is this a bug?