Retirement tax questions

So I have a question. If I have 150k in the 529 account and I keep changing beneficiaries to family members to donate to their 529, is that allowed? Does the clock reset every 15 years? Id love to hear your thoughts since you did it! This is interesting.