All I can remember is that it starts with a boy that is in a library late at night. At first its live-action, but then there are these animated colors (don't know how else to describe it) that flood the library. After that, the whole movie goes animated, with the kid having some sort of journey with characters from certain books.
I don't know if it's correct to say it was from the 80s, but its animation style was similar to that time, I think...