This lays out the timeline of the shift in popular opinion for gay marriage:
https://news.gallup.com/poll/117328/marriage.aspx
Here's polling on interracial marriage:
https://news.gallup.com/poll/163697/approve-marriage-blacks-...
Interracial marriage became legal nationwide in 1967 with Loving v Virginia, but wasn't approved of by the majority of Americans until 1997.
Edit: I only add this to support the the comment replied to.