BUTTON close out after click

Is there a tutorial or does somebody know how to go about making buttons close out after clicking on them? Kind of like www.dunun.com the thumbnail buttons in his photo gallery, I’m just looking for how to make a button x out or darken out after it’s been clicked. Thanks in advance.