首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏李洋博客

    个人博客主题模板给鼠标添加跟随特效教程

    代码总共分为css和js两种,以我的主题为例,登录后台,主题设置,找到自定义css接口,复制如下css代码: .mouse-cursor { position:fixed; left:0; top ; visibility:hidden; position:absolute; z-index:-1111 } @media screen and (max-width:1023px) { .mouse-cursor 以上颜色和边距可根据网站配色自行修改,css代码设置完成后,我们在主题设置中找到广告设置(脚本代码接口)或者统计接口,复制和粘贴如下代码:

    <script> jQuery(document).ready(function($) {     var myCursor = jQuery(".mouse-cursor");     if (myCursor.length) {         if ($("body")) {             

    1.1K40编辑于 2022-02-10
  • 来自专栏小狐狸说事

    WordPress 主题添加鼠标跟随特效

    -- 必须的DIV -->

    </ -- JS脚本 --> <script> jQuery(document).ready(function($){ var myCursor = jQuery('.mouse-cursor'); if -- 样式 --> <style> .mouse-cursor { position: fixed; left: 0; top: 0; pointer-events: none; border-radius .08s ease-out } .cursor-outer.cursor-hover { opacity: 0 } .main-wrapper[data-magic-cursor=hide] .mouse-cursor

    1.2K20编辑于 2022-11-17
  • 来自专栏李洋博客

    个人博客主题模板给鼠标添加跟随特效教程

    代码总共分为css和js两种,以我的主题为例,登录后台,主题设置,找到自定义css接口,复制如下css代码: .mouse-cursor { position:fixed; left:0; top ; visibility:hidden; position:absolute; z-index:-1111 } @media screen and (max-width:1023px) { .mouse-cursor 以上颜色和边距可根据网站配色自行修改,css代码设置完成后,我们在主题设置中找到广告设置(脚本代码接口)或者统计接口,复制和粘贴如下代码:

    <script> jQuery(document).ready(function($) {     var myCursor = jQuery(".mouse-cursor");     if (myCursor.length) {         if ($("body")) {             

    1K50编辑于 2023-03-03
领券