rest and animation example