Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Superscrollorama + height 100% on divs

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #149622
    grimski
    Participant

    Hi there,

    I’m having a play around with John Polacek’s amazing Scrollorama/Superscrollorama (http://johnpolacek.github.io/superscrollorama/) plugins.

    One thing I can’t seem to do is set a 100% height on a div to make each ‘section’ 100% in height. So I was wondering if anyone had experience with this plugin and had done something similar or if it required some separate javascript.

    I have found a site using the plugin and has 100% height set on each section: http://www.theblacksparrow.co.nz

    …but I can’t find out how its being set. I can’t see it in the javascript and the only thing in the CSS I can find is a min-height: 100%;, which is pure css, won’t work unless an absolute position is set – which its not.

    Thanks for reading and I hope someone can shed some light on this for me.
    Steve

    #149634
    Paulie_D
    Member

    100% height only works when the parent has a set height.

    In this case, both the html and body elements (and any other parents) also have min-height:100%.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.