监测 DOM 元素的 jQuery 插件 jSee

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-02 22:13:38

软件介绍

一款 jQuery 插件,监测 DOM 元素在滚动的时候是进入视窗范围还是离开视窗范围。

安装示例代码

$('.block').jSee({
            offsetEnter: 0,
            offsetLeave: 0,
            enter: function () {
                $(this).addClass('active');
            },

            leave: function () {
                $(this).removeClass('active');
            }
        });

参数

/**
     *
     * @param opts
     *  选项 object{ offset }
     *  offsetEnter[number]:纵向偏移量-进入
     *  offsetLeave[number]:纵向偏移量-离开
     *  enter[function]:进入回调
     *  leave[function]:离开回调
     */
    $.fn.jSee = function (opts) {
    //...
    }

本文地址:https://www.codercto.com/soft/d/22533.html

Data-intensive Text Processing With Mapreduce

Data-intensive Text Processing With Mapreduce

Jimmy Lin、Chris Dyer / Morgan and Claypool Publishers / 2010-4-30 / USD 40.00

Our world is being revolutionized by data-driven methods: access to large amounts of data has generated new insights and opened exciting new opportunities in commerce, science, and computing applicati......一起来看看 《Data-intensive Text Processing With Mapreduce》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具