At first I thought it was Harry Potter in search of Horcrux in Ministry of Magic. It wasn’t.
The characters were in a library sort of thing. Imagine a library in Ministry of Magic’s Department of Mystery. They were on a higher platform. The thing they searched for was in the middle of library or maybe they were trying to cross on to the other side. In order to reach their goal, they have to hop onto the book racks which started to move. It was probably not in a library and it probably were not book racks but I remember it was black moving objects that they can climbed on.
What’s the movie called? Thanks.