Meaning: Monkeys' tails were moving smoothly from side to side like pendulums.
Choice of Words: "Tails" are the long, thin parts that extend from the backs of monkeys, "swayed" means to move gently back and forth, and "pendulums" are objects that swing freely back and forth.