PageSourceSearch

https://bunio.co.kr/jwgbox/jwgjs/scroll_animation.js

js bunio.co.kr collected 2026-10-08 09:50:35 UTC 843 bytes, 26 lines download raw bytes

1
2
3
4/* 스크롤시 지정 컨텐츠에 클래스 추가 (스크롤 애니메이션) */
5$(window).on('scroll', function() {
6    $('.scroll_animation_box').each(function() {
7    if (checkVisible($(this))) {
8        $(this).addClass('scroll_animation_open');
9        }
10        
11    });
12});
13
14function checkVisible( elm, eval ) {
15    eval = eval || "object visible";
16    var viewportHeight = $(window).height(), // Viewport Height
17        scrolltop = $(window).scrollTop(), // Scroll Top
18        y = $(elm).offset().top,
19        elementHeight = $(elm).height();   
20    
21    if (eval == "object visible") return ((y < (viewportHeight + scrolltop)) && (y > (scrolltop - elementHeight)));
22    if (eval == "above") return ((y < (viewportHeight + scrolltop)));
23};
24/* // 스크롤시 지정 컨텐츠에 클래스 추가 (스크롤 애니메이션) */
25
26

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.