assert offset is float for animation