低仿lusaxweb鼠标

简介: 低仿lusaxweb鼠标

幸福的婚姻生活,往往会被卑鄙的勾当、阴险的猜忌所破坏。——莎士比亚

这是 http://lusaxweb.net/

它的鼠标很有意思,是一个圈,能够反色,我们低仿一个

代码如下:

<!DOCTYPE html>
<html>
<head>
    <style>
        * {
            margin: 0;
            padding: 0;
            cursor: none;
        }
        .img {
            height: 80vh;
            width: 80vw;
            overflow: hidden;
        }
        .img:hover~#cursor-pointer {
            background-color: white;
        }
        #cursor-circle {
            pointer-events: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 1px solid black;
            background: white;
            mix-blend-mode: exclusion;
            position: absolute;
            transition: .1s all;
        }
        #cursor-pointer {
            pointer-events: none; 
            width: 4px;
            height: 4px;
            border-radius: 50%;
            position: absolute;
            background-color: black;
        }
</style>
</head>
<body>
    <div class="container">
        <img class="img" src="https://VampireAchao.gitee.io/imgs/preview/3131_3.jpg" />
        <div id="cursor-circle"></div>
        <div id="cursor-pointer"></div>
    </div>
    <script>
        const cursorCircle = document.querySelector("#cursor-circle")
        const cursorPointer = document.querySelector("#cursor-pointer")
        window.addEventListener('mousemove', e => {
            cursorPointer.style.top = document.documentElement.scrollTop + e.clientY - 1 + 'px'
        cursorPointer.style.left = document.documentElement.scrollLeft + e.clientX - 1 + 'px'
        cursorCircle.style.top = document.documentElement.scrollTop + e.clientY - 12 + 'px'
        cursorCircle.style.left = document.documentElement.scrollLeft + e.clientX - 12 + 'px'
        })
</script>
</body>
</html>


效果如下:


相关文章
|
12月前
|
安全 Java 微服务
更优雅的条件分支:Java 17 Switch表达式实践
更优雅的条件分支:Java 17 Switch表达式实践
434 29
|
开发工具 git 缓存
Git忽略规则.gitignore不生效
在项目开发过程中个,一般都会添加 .gitignore 文件,规则很简单,但有时会发现,规则不生效。 原因是 .gitignore 只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。
64556 6
|
Ubuntu 安全 搜索推荐
揭秘Ubuntu系统的优势,你想知道吗?
对于移动设备,Ubuntu系统还在不断地探索与支持。众多Ubuntu系统的社区和开发人员正在探索Ubuntu系统在移动领域的应用,以提供全新的、更加开放和稳定的移动系统体验。 对于云服务器,Ubuntu系统作为一种轻量级的操作系统,越来越受到云服务提供商的青睐。Ubuntu系统可以作为一种安全和高效的云服务器操作系统,无论在公有云、私有云或混合云里,都可以提供出色的性能和体验。
|
消息中间件 网络协议 算法
UDP 和 TCP 哪个更好?
【8月更文挑战第23天】
1279 0
|
人工智能 安全 测试技术
快手封号代码是真的假的?
"快手封号代码"技术解析报告
|
机器学习/深度学习 弹性计算 固态存储
2025年阿里云服务器租用价格参考:云服务器ECS最新收费标准及活动价格表
2025年,阿里云服务器ECS的租用价格再次迎来更新,1月22日12:00开始,阿里云又开启新一轮的降价政策,部分实例规格的云服务器收费标准有所变化,同时为了进一步降低了用户上云的成本,阿里云还会不定期推出各种活动。现在月付和年付租用阿里云服务器均有优惠了,本文为大家整理汇总了截止目前阿里云服务器最新的租用收费标准及活动价格表,以供了解与参考选择。
5437 12
|
测试技术 Nacos 开发工具
灰度发布:揭秘背后的原理与实践浅见
揭秘灰度发布背后的原理与实践浅见
1515 2
|
供应链 物联网 区块链
智能合约:区块链世界的法则之书
智能合约:区块链世界的法则之书
1404 1
|
Prometheus Cloud Native Java
OpenTelemetry: 经得起考验的工具
OpenTelemetry: 经得起考验的工具
3070 2
|
缓存 Java Linux
linux离线安装libreoffice
linux离线安装libreoffice
4417 0