Help with Image Disappearing when at specific percentage.

I am trying to make make an image disappear when it reached 50%. And the yellow bar will turn on after the green bar turns off. Help please?

bind the opacities of the bars to the others percentage?