The figurative language used here is METAPHOR
By likening the rack to a teeter totter, the writer creates a picture of how the massive rack was moving; showing that the rack was rocking back and forth like how a teeter totter would move if someone had been playing on it.