If you cannot see through the vehicle in front of you, maintain a following distance of at least:

A minimum four-second following distance is recommended when riding under unfavorable conditions. If you are riding where there is heavy traffic congestion, where the pavement is slippery, or if you cannot see through the vehicle in front of you, you should increase your following distance.
DMV Writen Test