PageSourceSearch

https://www.frees-life.com/wp-content/themes/freeslife/common/js/one_person.js

js frees-life.com collected 2026-10-08 04:30:16 UTC 919 bytes, 30 lines download raw bytes

1// JavaScript Document
2
3jQuery(function($) {
4
5function animationSetting(){
6    $('.animation').each(function(){
7        var obj       = $(this),
8            objH      = $(this).outerHeight(),
9            scrolled  = $(window).scrollTop(),
10            viewed    = scrolled + $(window).height(),
11            objTop    = $(this).offset().top,
12            objBottom = objTop + objH,
13            excnum    = 0.4;
14    //もしオブジェクトが画面内にあれば
15        if((objTop + objH * excnum) <= viewed && (objBottom - objH * excnum) >= scrolled){
16      //オブジェクトにclassを付与(アニメーションの種類と起動)
17            obj.addClass(obj.data('animation')).addClass('animated');
18        }
19    })
20}
21
22//読み込んだした時点で一度起動
23animationSetting();
24
25//スクロールする度に起動
26$(window).on('scroll', function() {
27    animationSetting();
28});
29
30});

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.