Help animating flex

Greetings - I want to animate the flexing of a standard straight bar (rectangle extruded) set at one end and free to move in 1 direction in the other (think simple bending up and down and repeating) . Basically have been using the flex command to get different configurations but cant seem to meld together.  Is there an easy way to do this? Thanks!

SolidworksMotion Studies