I think this is right. Societal change makes it feel safer to hold the new opinion than the old one. A lot of people who have "changed their minds" about gay people are actually just making a pragmatic adaptation to the realities of modern life (consciously or subconsciously).
One of the first things to realise about people's apparently very strong views is that often they're simply echoing what they think is the majority view (but they generally really won't like you pointing that out). A second is that often they change quite swiftly when people stop talking about it. Not only are they not constantly being reminded that X is bad by people and sources they trust, but they also don't feel obliged to keep defending a position they held a couple of years ago when not regularly prompted to justify it.