Comparing the acceptance of interracial marriage and homosexual marriage is like comparing apples to oranges.
The better comparison would be abortion.
And public opinion is now changing AGAINST abortion.
There is a significant difference in that the courts were activist and out in front of public opinion on interracial marriage, but hung back cautiously behind public opinion and avoided activism on gay marriage.