The character Captain Cold has 'cold guns' which have capabilities including:
Creating a cold field where people and objects literally stop in their tracks. Cold uses this ability to slow down The Flash's movements.
Creating a slippery field of ice which can slow down the Flash.
Here's an image from the comics:
Not quite the comics, but here's a quote from the book Captain Cold's Arctic Eruption (closer to canon than a LEGO Justice League short?) which shows him stopping the Flash with an ice field:
Captain Cold cracked a wicked smile. He aimed his freeze gun again. Only this time, he lowered the muzzle and fired at the ground beneath Flash's feet.
WHAM! Flash slipped and fell hard onto the ice.
"Oh, did that hurt?" Captain Cold asked with a laugh. He raised his gun again and fired. BZZZZT!
Flash tried to get up. The icy ground was so slippery he was running in place.
In fact it's also possible for the Flash to slip on natural ice, not just ice created especially to slow him down by Captain Cold's special guns. Earlier in the same book, he has to take precautions to avoid slipping:
The higher the Flash climbed, the cooler the air became. Luckily, the super hero's vibrations created their own heat and kept him from getting cold. The ground was slippery in places. Snow and ice slowed him down. He had to be very careful not to slip and fall.