It didn't start under Obama, it started under Bill Clinton. That's when they told the the mainstream to get out of their party.
The media went full tilt left under Obama. They shrewdly claimed everyone who didn't vote for him was a racist. The Dems ran with it, and are still running with it.