building layer fade animation
workaround for html backend - InputStream emu does not implement Closable