Slider and Animation Triggers
I am trying to create and interactive bar chart with a slider control.
I want the bar chart to animate as a user moves the slider to various points.
So here is my example:
If I have a slider with 5 points, there will be 5 bars for each point. If you drag the slider to point 2 I want the bar to animate in, if you then move the slider to point 3, I would like bar 3 to animation in but for bar 2 to animate out.
In summary whichever ever point you move to I want the animation to come in and whichever point you came from to animate out again. I can make it work with 2 points but if you start adding more then it seems to break down my animation. For example when you move to point 2 from 3 then I would like bar2 to animation in and bar 3 to animate out (which I can do) but bar 1 also animates out, as this is programmed earlier. This is confusing, haha.
I have added the file I have at the moment.
N.B I have added an additional file to show what I have working. The last thing I need to do is make only the bar you have moved from animate down rather than them all.