Synchronization of chaotic systems with activity-driven time-varying interactions