There's probably various ways to achieve this - but below are some basic steps that should give you a general idea:
Open your home.html page in a browser. The page should contain some sort of list which can be pre-populated with data (an alphabetically sorted list of movies for example).
You begin scrolling down the page - attempting to see the last movie in the list.
As you get closer to the bottom - a script running in your page (home.html) will detect that you are nearing the bottom and will make an AJAX request to another page (URL) to retrieve the next set of movies.
Once the data has been retrieved, the script will format and append more items to the movie list - giving the viewer the effect of an infinite scroll.
Note: The above can be achieved with plain HTML and JavaScript and you do not need any server side code (PHP) or live hosting. Check out this very simple tutorial that will walk you through the basics with some code examples.