Taylor Swift wrote and sang the song I Knew It, I Knew You for the latest Toy Story sequel. (file) -AP
Pop superstar Taylor Swift has made a surprise appearance in Hollywood at the premiere of animated movie Toy Story 5.
Hold tight - we’re checking permissions before loading more content
Swift sat at a piano in a full-length gown on stage at the Dolby Theatre and sang I Knew It, I Knew You, the song she wrote for the new Toy Story instalment.
The singer said she has been a longtime fan of the movie franchise.
"It means the world to me to be a small part of these films," she said on Tuesday.
Swift then introduced another unexpected guest - Randy Newman, composer of the musical scores and many of the breakout songs from the Toy Story movies.
The pair sang a duet of You've Got a Friend in Me, one of Newman's hits from the first Toy Story in 1995.
Earlier, Swift posed on the red carpet with Tom Hanks, Joan Cusack and other members of the Toy Story voice cast.
Toy Story 5 will be released by Walt Disney's Pixar Animation Studios on June 19.