Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <article>
- <div class="page two"></div>
- <div class="page three"></div>
- <div class="page four">
- <p>Given a jQuery object that represents a set of DOM elements, the .has() method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against the descendants of the matching elements; the element will be included in the result if any of its descendant elements matches the selector.</p>
- <p>Given a jQuery object that represents a set of DOM elements, the .has() method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against the descendants of the matching elements; the element will be included in the result if any of its descendant elements matches the selector.</p>
- <p>Given a jQuery object that represents a set of DOM elements, the .has() method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against the descendants of the matching elements; the element will be included in the result if any of its descendant elements matches the selector.</p>
- </div>
- <div class="page five"></div>
- </article>
- $(function() {
- $("p").css("opacity", "0");
- $(window).on('scroll mousewheel', function(e){
- var elem = $(".four").offset().top;
- var pos = $(this).scrollTop();
- if (pos + 100 > elem) {
- e.preventDefault();
- e.stopPropagation();
- return false;
- }
- });
- });
- .page {
- height: 500px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement