How did the election of 1964 capture the changing views of Americans?

Wasn't it that LBJ ran on an anti-war platform, which means that the American people were sick and tired of the war?

Keep in mind that the election took place a bit less than a year after President Kennedy was assassinated.

https://www.google.com/search?q=election+US+1964&rlz=1C5CHFA_enUS705US707&oq=election+US+1964&aqs=chrome..69i57j0l4.5275j0j7&sourceid=chrome&ie=UTF-8