Co-parenting can be hard. But celebrities are showing how it’s done.

Linda Evangelista, Salma Hayek and French billionaire François-Henri Pinault were all smiles as they huddled together in Instagram photos celebrating their son Augustin Evangelista’s high school graduation.

Antonio Banderas recently commented on a photo featuring his daughter Stella Banderas and ex-partner Melanie Griffith: “Happy to see you all happy!!”

Jennifer Garner also took to Instagram stories to wish her ex-husband Ben Affleck a happy Father's Day, according to a screenshot taken by E! News and Page Six. They share three kids.

What’s the secret to a successful co-parenting relationship? Emotional maturity, healthy boundaries, skillful communication and child-focused parenting, said Karen Bonnell, psychotherapist and author of the “The Co-Parenting Handbook” and “The Stepfamily Handbook.”