This paper deals with the motion by curvature of planar curves having end points moving freely along a line with fixed contact angles to this line. We first prove the existence and uniqueness of self-similar shrinking solution. Then we show that the curve shrinks to a point in a self-similar manner, if initially the curve is a graph.