Pinned vertices for cloth...

How do i animate the pinning vertices for cloth?

I tryed going into edit mode and setting key frames on the vertices but didn’t work, so i don’t know how to do it.