It is more likely that both of the films were inspired by a common source which is a book titled
Cosmic Zoom by the Dutch educator Kees Boeke (since both of the films credited the book).
Also like these two, the book is available to view online: http://www.vendian.org/mncharity/cosmicview/