How to add Flip animation for a sprite?

How to add a flip action in a given time interval to rotate around the axis to provide a flipping effect for a sprite. The ones i found takes in bool value but doesnt flix in given time interval and it doesnt provide the flipping effect.