Your muscles stiffen during what is known as "rigor mortis" and your body cools down when what is known as "algor mortis" ...
and some will experience an immediate drop in body temperature while cooling may not begin for others until an hour or two after they've died - known as the algor mortis stage of decomposition.