leafo / sticky-kit

A jQuery plugin for creating smart sticky elements

Home Page:http://leafo.net/sticky-kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Troubleshooting docs are ambiguous or incorrect

6233114 opened this issue · comments

The troubleshooting documentation explaining the issues with the google ads is ambiguous or incorrect.

The HTML code uses a CSS class of my-sticky-element:

< div class="sticky-parent"> < div class="sticky-spacer"> < div class="my-sticky-element">Hello world</div> </ div> .. the rest of the page ... </ div>

However, the JQ code refers to a CSS class of .my-sticky-item:

$(".my-sticky-item").stick_in_parent({ parent: ".sticky-parent", // note: we must now manually provide the parent spacer: ".sticky-spacer", });

Could you confirm which is correct? Thanks.