Sticky footer expanding to bottom of content?

Hey all,

Just wondering how i would use sticky footer (which works successfully) when content is shorter than the view port.

But if the content requires scrolling how would i also get my sticky footer to adjust to the height of the long content and not stick any more??

Thanks in advance!!