
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@fekit/mc-lazyload
Advanced tools
页面滚动时监听指定元素滚动到可视区域时播放动画
http://www.junbo.name/plugins/mc-inview
下载项目:
npm i mc-inview
el {String} 选择器
theme {String} 插件配套的动画主题
offset {Number} 元素触发动画时的偏移量 0-1
once {Number} 是否仅播放一次动画
on:{
view {Function} 显示时触发
none {Function} 隐去时触发
}
import McInview from './mc-inview';
// 楼层埋点
new McInview({
el: '.floor',
on: {
view(dom) {
console.log(dom, '这个元素滚动到可视区了');
}
}
});
v1.0.4
1. 给懒加载的图片父级元素添加一个标误符用于控制在一些与图片平级元素的状态。
v1.0.2
1. 重构核心代码,优化性能
v1.0.1
1. 此版本精简了代码,取消了onshow和onhide,回调合并为一个then,可以通赤then回调的传参来判断是显示还是消失及其它一些操作。
如果您在使用中遇到问题,请通过以下方式联系我。
QQ: 860065202
EMAIL: xiaojunbo@126.com
FAQs
The npm package @fekit/mc-lazyload receives a total of 0 weekly downloads. As such, @fekit/mc-lazyload popularity was classified as not popular.
We found that @fekit/mc-lazyload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.