Forum Discussion
making a bar graph animate up and down as you move a slider
Hi Andy,
Invert the triggers to start at the last object state instead of the first object state.
Example: For an object to start tall and get shorter when the slider is dragged, create an object with 10 states and each state has a shape that is incremental in size from "tall" to "short". When slider variable is 1 change state to 1. When slider variable is 10 change state to 10. Inversely, to show bar start short and grow taller, change the triggers that when the slider variable is 1 change the state to 10. When the slider variable is 2 change the state to 9, etc.
Attached is a starter example I use when teaching this concept.
Hi Kevin,
Thanks for the response. I think I understand that part. The issue I'm having is that my bars are fixed at the top and "grow" down towards the bottom of the slide instead of growing "up" towards the top of the slide. If you see my attachments, slide 1 is Normal state and slide 2 is state 5. The "anchor of the shape is at the top and it changes to go downward thus covering the text. I want it to go the other way (up). I'm assuming this is something easy I just can't find it!
- PhilMayor6 years agoSuper Hero
No not easy the shape grows from the bottom when you increase the height, you need to drag the up