Curtains

so yeah i dont know how to do curtains that close when you hold left click and open when release it. there aren’t much of videos for this in the youtube. i only need tutorial for this. thanks already who helps.