Cupcakes should be completely cool before frosting. If cupcakes are frosted while warm, the frosting will melt and slide off. To speed up the cooling process, place the cupcakes in the fridge until they are room temperature.