Jennifer Lopez, who turned 40 on July 24, showed off her bikini bod while sunbathing on a yacht in Capri on Monday. She is currently on a vacation with husband Marc Anthony and 1-year-old twins Max and Emme.

Lopez has admitted getting her body back after having two babies took "a lot of work."

"I thought it was gonna drop off easily because I had been in shape my whole life, but it wasn't," she told "Entertainment Tonight" in June. "I gained about 50 pounds with my twins, and the first 30 dropped off like that, and I was like, 'Ha, this is gonna be so easy.' That last 20 -- that took a while."