# followPopup.js **Repository Path**: yutingtao91/followPopup.js ## Basic Information - **Project Name**: followPopup.js - **Description**: 轻量级jQuery插件,鼠标跟随移动弹出显示插件,兼容IE7+ - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2020-01-01 - **Last Updated**: 2024-07-25 ## Categories & Tags **Categories**: jquery-plugins **Tags**: None ## README # followPopup.js 轻量级原生js插件,跟随鼠标移动的弹出层插件 ```javascript // 原生用法: new FollowPopup(document.getElementById('demo1'), { html: '
隐藏的内容跟随鼠标一起动...
', afterEnter: function(el, popup) { console.log(el, popup); } }); ``` ```javascript // 使用jQuery: $('.demo').followPopup({ html: '
隐藏的内容跟随鼠标一起动...
', afterEnter: function(el, popup) { console.log(el, popup); } }) ```