A dense fog advisory has been issued for Long Island through Tuesday morning, with forecasters warning of limited visibility making travel difficult. 

The advisory, coupled with a hazardous weather outlook, was expected to last through 6 a.m. Tuesday, according to the National Weather Service. A dense fog advisory means visibility will be a quarter mile or less.

The rainy weather that cast a shadow over Long Island for much of Monday was expected to clear by late Tuesday morning, opening the door for some afternoon sunshine, with temperatures around the mid-70s expected.

Showers were likely to dissipate by 8 a.m., the weather service said. The high temperature was forecast to be 77. Tuesday's low temperature was forecast at 58. 

The precipitation came courtesy of a warm front arriving from the south, the National Weather Service said.

Wednesday is expected to be mostly sunny, followed by more showers Thursday.

A small craft advisory was also forecast for waters off the South Shore until 6 a.m. Tuesday.

With Nicole Fuller 

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Updated 13 minutes ago Amazin! Mets heading to NLCS ... Latest on offshore wind farms  ... Get the latest news and more great videos at NewsdayTV

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Updated 13 minutes ago Amazin! Mets heading to NLCS ... Latest on offshore wind farms  ... Get the latest news and more great videos at NewsdayTV

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME