ELI5: How and when did the current Democratic and Republican parties swap ideologies?

by velv2

I know from school they taught us that the modern day Democrats and Republicans used to have essentially swapped political stances. What I'd like to know is how such a radical change could occur and why? Also a timeframe for this would be awesome, if I'm correct the switch occurred sometime after the civil war though I'm not sure when.

cuddlyfreshsoftness

This is a fairly popular question. You can look over the FAQ section here until someone qualified comes along to give a proper answer.