Grow your CSS skills. Land your dream job.

Load content when scrolling ?

  • # March 2, 2013 at 1:04 pm

    Like this: [http://www.kallehagman.com/](http://www.kallehagman.com/ “http://www.kallehagman.com/”).

    I was wondering is there a way to do this, some kind of tutorial maybe for it ? I guess I would need it for wordpress sites

    # March 2, 2013 at 1:34 pm

    jquery – mouse wheel event – .load

    Wordpress: http://www.infinite-scroll.com/

    # March 2, 2013 at 2:19 pm

    Can I use this on a static page that is my homepage, since that’s the only place I want to use it ?

    My static would be something like this in terms of content : [http://global.tommy.com/int/en/Collections/children/hello-sunshine](http://global.tommy.com/int/en/Collections/children/hello-sunshine “website”)

    Except it would have far less content but still

    # March 2, 2013 at 2:55 pm

    Plugin? I don’t know never tried it. Their page says:

    > Why doesn’t it work on ____ page?
    Currently, the plugin is disabled for everything but the main page, but I’ll work on enabling it for Archives, Categories, and Tags.

    So I guess that’s exactly what do you need.

    # March 2, 2013 at 3:06 pm

    So it will work for static homepage that doesn’t have “More posts” ?

    I’m sorry for so many questions instead of testing it out it’s just I can’t since i’ve only done html / css no wordpress yet for my site

    # March 2, 2013 at 3:16 pm

    I don’t really understand. If you’ll have 100 posts on home page it will load them while scrolling, if you’ll have 1 post there will be nothing to load/scroll?

    # March 2, 2013 at 3:37 pm

    I won’t have posts on a home page(custom static page) but i will have a lot of divs with static content.

    So im wondering will that be possible to load while scrolling ?

    # March 2, 2013 at 3:44 pm

    Ow, no, it’s only for wordpress homepage posts. I afraid you’ll need to write your own code for a static page using .load() and .scroll() functions

    # March 2, 2013 at 3:47 pm

    Ahh I’m glad you understood me :D

    So theres not tutorial out there to do that ? I can’t seem to find one on google

    # March 2, 2013 at 3:50 pm

    I don’t really have that much time to google that for you :), but here’s one of the first results:

    http://stackoverflow.com/questions/10663985/using-jquery-load-when-user-scrolls-to-the-end-of-page

    I think that should give you the idea.

    # March 2, 2013 at 4:04 pm

    Alright thanks

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".