Jump to content

Archived

This topic is now archived and is closed to further replies.

Jackey

Sticky Container

Recommended Posts

Jackey

Maybe an idea for a new section... a sticky containter. 
It's like a normal container but it adapts his height to his parent and everything put inside it is stationary to the viewport.

Share this post


Link to post
Share on other sites
Brian

Yes, love the idea of having a sticky container!

Share this post


Link to post
Share on other sites
Andrew

What's the use case

Share this post


Link to post
Share on other sites
Jackey

It's a convenient way to keep a sidebar in the viewport like here: http://melisgs.nl/2015/10/17/hallo-wereld/

It would be great to have the right column container (red) to be vertically static to the viewport, but confined to the dimensions of the parent container (green).
It being a container that could hold more that one section (blue). 

sticky.thumb.png.2756f9efde4c0c4c913f195

 

 

Share this post


Link to post
Share on other sites
Gavin_

If you have a sticky element, it always stays at the top of the page. 
2 use case could be:
1. as Jackey has illustrated a sidebar area (with a CTA for example) is always present as you scroll down the page. 
2. if you wanted a second navigation area only for the long page the user was on - like the old scroll to section. 

Share this post


Link to post
Share on other sites
Jackey

It's more like it's floating to the top of the viewport. So maybe I should call it a "Floating Container". :lol:

Share this post


Link to post
Share on other sites
Brian

Yeah, essentially that was SideWalk extension for DMS2. Was hoping to get that converted for PL5 with the same JS that was used.

Share this post


Link to post
Share on other sites
Brian

Hey @Simon, the pl-sidewalk plugin still has issues working properly. Isn't behaving at all like the DMS2 version. Just wondering if you were going to make it an actual PL5 extension? Thanks.

Share this post


Link to post
Share on other sites
Simon

It was something i threw together for someone to finish a site, cant remember who it was even ;)

Have a few more billing issues to attend to tonight, v.boring! Hoping to get a few extentions coded up this week, nextbox or something like it, yea possible sticky something.. 

Mind you though the actualy sticky jquery plugin is extremely simple, you just tell it what element you want to stick, like sticky('#whatever')

Share this post


Link to post
Share on other sites

×