This is so vague I don't hold out much hope...I've googled but drawn a blank.
The story involved a magic step ladder (!) which (I think) was tiny when it was folded but got bigger when it opened and the children in the story discovered this and climbed on to it and were transported somewhere else. Some of the lower steps were painted a different colour and I think that had something to do with whether the magic worked.