案例作品集 浏览精选项目

WESWOO 提供 Shopify Plus 项目开发费抵扣,至多 US$4,800

搜索
指针、按钮与菜单

图片内跟随提示

提示跟随指针时,文字可能刚好压住要看的画面。用 Tab 停在示例上再按 Enter,核对没有悬停时也能理解按钮要做什么。

关掉自定义指针,再仅用触屏或键盘找到“查看项目”。跟随光标的文字可帮助有鼠标的人,购买或浏览入口仍需在没有光标时可见可用。

减少动态效果时跟随标签关闭,点选仍能报告 INIU 已选中。这两步可分别验收装饰和功能。

复现实验与读数

模拟鼠标进入画面中心再点选,先记录跟随标签是否启用,再读点选反馈。

908、316 px,默认动态
是,再到 INIU project screen selected. Add your own destination when integrating.
908、316 px,减少动态效果
否,再到 INIU project screen selected. Add your own destination when integrating.

WESWOO 在独立 Chrome 窗口载入本页公开示例的 HTML、CSS 和 JavaScript,预览高 700 px。两种宽度下都单独测试默认偏好和减少动态效果。

2026-11-24 · Chrome 157.0.8103.79

下载测试条件与原始读数(JSON)

正在准备预览

特效说明

提示跟随,入口本身不消失

案例封面可以在鼠标经过时出现“查看项目”的标签,但项目名称和链接仍应在固定位置可见。这样没有鼠标的人也能理解用途。跟随标签适合为大图入口补充提示,不适合承载唯一的价格、说明或下一步,否则指针离开后信息就没了。

标签属于卡片的局部坐标

示例将鼠标位置换算到卡片内部,并按标签半径限制边界,让它不会跑出图外。标签不接收指针事件,普通光标保留;底层演示按钮响应点击并只更新状态。接入主题时把演示按钮换成具有真实目的地的链接,图片与目标来自同一内容记录。触屏保留普通入口,减少动态时可把提示固定显示。

示例源码

查看 3 个源文件HTML · CSS · MJS
cursor-label.html
<section class="fx" data-effect="cursor-label"><small>20 / CONTEXT AT THE POINTER</small><button type="button" class="cursor-target" aria-label="Explore the INIU website project screen"><span class="art" data-art="3" aria-hidden="true"></span><span class="cursor-caption">INIU / PROJECT SCREEN</span><span class="cursor-badge" aria-hidden="true">VIEW<br>STUDY</span></button><p class="hint" role="status">Hover to move the label; tap or press Enter to select.</p></section>

接入与验收

接入主题

3 步
  1. 复制要接入的主题

    在主题副本里接入和预览示例。

  2. 把素材接到区块设置

    将示例文字与图片替换为 Section 设置,并把样式限定在当前 Section。

  3. 绑定编辑器生命周期

    用生命周期脚本处理主题编辑器重载、离屏暂停和卸载清理。

使用位置

  • 案例或系列导览 Section;image_3 输出画面,link 设置提供真实去向。接入例将演示按钮替换为正常链接,不依靠浮动标签完成操作。

交互逻辑

  • pointermove 计算卡片内坐标并按标签半径收边,通过 CSS 变量移动标签;标签 pointer-events:none,不遮挡底层链接。只处理 mouse 指针,不隐藏全站光标。

触摸与无障碍

  • 触摸、键盘与减少动态使用底部固定提示及正常链接。浮动提示 aria-hidden,避免两次读到相同动作;离开和暂停时隐藏。

本效果的接入说明

文件:复制下方 sections/ww-effect-cursor-label.liquid;将本项 JavaScript 原样保存为 assets/ww-effect-cursor-label.js,并复制本页共用的 assets/ww-effect-studio.js。Section 已内含限定在 .ww-fx-host 的 CSS。

数据:案例或系列导览 Section;image_3 输出画面,link 设置提供真实去向。接入例将演示按钮替换为正常链接,不依靠浮动标签完成操作。

初始化:播放时才加载所选模块;每个 Section 独立保存实例。离屏、切换标签页和偏好变化会暂停,Section 卸载会断开观察与监听。

交付边界:这是具体的主题接入示例;滚动类保留画布内滚动模型。若改为整页驱动,须按前文逻辑重新计算 Section 区间。请在复制主题中替换图片、翻译控件并核验主题样式和实际设备。

上线检查

接入文件
sections/ww-effect-cursor-label.liquid
{% comment %}
WESWOO original Section example. Copy assets/ww-effect-cursor-label.js and assets/ww-effect-studio.js.
This preserves the local preview scroll model. A page-driven story needs the documented Section interval adaptation.
Theme Check is static validation, not a completed merchant-theme installation. Localize control strings for multilingual shops.
{% endcomment %}
<ww-effect-study class="ww-fx-host" data-effect-type="cursor-label" id="WWEffect-{{ section.id }}" data-module-url="{{ 'ww-effect-cursor-label.js' | asset_url }}">
<div class="ww-fx-controls"><button type="button" data-effect-toggle aria-pressed="false">Play / pause</button><span data-effect-status role="status"></span></div>
<section class="fx" data-effect="cursor-label"><small>20 / CONTEXT AT THE POINTER</small><a class="cursor-target" href="{{ section.settings.link | default: routes.all_products_collection_url }}" aria-label="{{ section.settings.heading_1 | escape }}"><span class="art" data-art="3" aria-hidden="true">{% if section.settings.image_3 != blank %}{{ section.settings.image_3 | image_url: width: 1600 | image_tag: widths: '360, 720, 1080, 1600', sizes: '(min-width: 990px) 50vw, 100vw', loading: 'lazy', class: 'ww-fx-image' }}{% endif %}</span><span class="cursor-caption">{{ section.settings.heading_1 | escape }}</span><span class="cursor-badge" aria-hidden="true">VIEW<br>STUDY</span></a><p class="hint" role="status">Hover to move the label; tap or press Enter to select.</p></section>

</ww-effect-study>
<script type="module" src="{{ 'ww-effect-studio.js' | asset_url }}"></script>
{% stylesheet %}
.ww-fx-host[data-effect-type="cursor-label"] *{box-sizing:border-box}.ww-fx-host[data-effect-type="cursor-label"]{margin:0;background:#111211;color:#f4f0e7;font:14px/1.55 Arial,Helvetica,sans-serif}.ww-fx-host[data-effect-type="cursor-label"] button,.ww-fx-host[data-effect-type="cursor-label"] input{font:inherit}.ww-fx-host[data-effect-type="cursor-label"] button{cursor:pointer;border:1px solid #ffffff50;border-radius:99px;padding:11px 18px;color:inherit;background:transparent;min-height:42px}.ww-fx-host[data-effect-type="cursor-label"] button:hover{background:#ffffff15}.ww-fx-host[data-effect-type="cursor-label"] button:focus-visible,.ww-fx-host[data-effect-type="cursor-label"] a:focus-visible,.ww-fx-host[data-effect-type="cursor-label"] input:focus-visible,.ww-fx-host[data-effect-type="cursor-label"] [tabindex]:focus-visible{outline:3px solid #c6fc6b;outline-offset:4px}.ww-fx-host[data-effect-type="cursor-label"] .fx{position:relative;min-height:500px;padding:34px;overflow:hidden;display:grid;align-content:center;gap:20px;isolation:isolate;background:#111211}.ww-fx-host[data-effect-type="cursor-label"] .fx h2,.ww-fx-host[data-effect-type="cursor-label"] .fx h3,.ww-fx-host[data-effect-type="cursor-label"] .fx p{margin:0}.ww-fx-host[data-effect-type="cursor-label"] .fx h2{font-size:clamp(36px,7vw,82px);font-weight:750;letter-spacing:-.065em;line-height:.98}.ww-fx-host[data-effect-type="cursor-label"] .fx small{letter-spacing:.18em;color:#c2c3b9;font-size:10px}.ww-fx-host[data-effect-type="cursor-label"] .fx>small{position:relative;z-index:2;align-self:start}.ww-fx-host[data-effect-type="cursor-label"] .fx p{max-width:46ch}.ww-fx-host[data-effect-type="cursor-label"] .fx:after{content:'WESWOO / INTERACTION STUDY';position:absolute;bottom:12px;right:23px;font-size:8px;letter-spacing:.18em;color:inherit;opacity:.45;pointer-events:none}.ww-fx-host[data-effect-type="cursor-label"] .art{position:relative;min-height:240px;border-radius:3px;overflow:hidden;background-color:#ea754e;background-size:cover;background-position:center}.ww-fx-host[data-effect-type="cursor-label"] .art:before,.ww-fx-host[data-effect-type="cursor-label"] .art:after{content:none!important}.ww-fx-host[data-effect-type="cursor-label"] .hint{font-size:11px;color:#b5b8ad}.ww-fx-host[data-effect-type="cursor-label"] .controls{display:flex;gap:8px;flex-wrap:wrap}.ww-fx-host[data-effect-type="cursor-label"] .scroller{height:385px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b7b9a6 #292a26;border-radius:3px;position:relative;outline-offset:2px;overscroll-behavior-y:contain}.ww-fx-host[data-effect-type="cursor-label"] .spacer{height:120px;display:grid;place-items:center;color:#bfc1b5;font-size:11px;letter-spacing:.04em}.ww-fx-host[data-effect-type="cursor-label"] .fx [hidden]{display:none!important}.ww-fx-host[data-effect-type="cursor-label"] .fx[data-playing=false] *{animation-play-state:paused!important}.ww-fx-host[data-effect-type="cursor-label"] .fx button[aria-pressed=true]{background:#c6fc6b;color:#171a12}.ww-fx-host[data-effect-type="cursor-label"] .fx a{color:inherit;text-underline-offset:4px}.ww-fx-host[data-effect-type="cursor-label"] .fx[data-reduced-motion=true] *,.ww-fx-host[data-effect-type="cursor-label"] .fx[data-reduced-motion=true] *:before,.ww-fx-host[data-effect-type="cursor-label"] .fx[data-reduced-motion=true] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:500px){.ww-fx-host[data-effect-type="cursor-label"] .fx{padding:22px;min-height:460px;gap:18px}.ww-fx-host[data-effect-type="cursor-label"] .fx h2{font-size:43px}.ww-fx-host[data-effect-type="cursor-label"] .fx>small{font-size:8px}.ww-fx-host[data-effect-type="cursor-label"] .art{min-height:215px}.ww-fx-host[data-effect-type="cursor-label"] .scroller{height:355px}.ww-fx-host[data-effect-type="cursor-label"] .fx:after{font-size:7px;right:16px}}
@media(prefers-reduced-motion:reduce){.ww-fx-host[data-effect-type="cursor-label"] *,.ww-fx-host[data-effect-type="cursor-label"] *:before,.ww-fx-host[data-effect-type="cursor-label"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.ww-fx-host[data-effect-type="cursor-label"] .art{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20900%20700%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22bg%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ff764a%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23b52d29%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22chrome%22%20x2%3D%22.8%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23fff8d7%22%2F%3E%3Cstop%20offset%3D%22.26%22%20stop-color%3D%22%23b3aca6%22%2F%3E%3Cstop%20offset%3D%22.48%22%20stop-color%3D%22%23fef9e8%22%2F%3E%3Cstop%20offset%3D%22.59%22%20stop-color%3D%22%23656773%22%2F%3E%3Cstop%20offset%3D%22.82%22%20stop-color%3D%22%23d5d9d2%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23373c46%22%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%22pad%22%3E%3Cstop%20stop-color%3D%22%2355565c%22%2F%3E%3Cstop%20offset%3D%22.75%22%20stop-color%3D%22%23191b25%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230e1019%22%2F%3E%3C%2FradialGradient%3E%3Cfilter%20id%3D%22shadow%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2223%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url%28%23bg%29%22%20d%3D%22M0%200h900v700H0z%22%2F%3E%3Ccircle%20cx%3D%22770%22%20cy%3D%2280%22%20r%3D%22265%22%20fill%3D%22%23ffa873%22%20opacity%3D%22.35%22%2F%3E%3Cpath%20d%3D%22M0%20560L900%20395V700H0%22%20fill%3D%22%23f88958%22%20opacity%3D%22.24%22%2F%3E%3Cellipse%20cx%3D%22463%22%20cy%3D%22594%22%20rx%3D%22230%22%20ry%3D%2238%22%20fill%3D%22%2353272b%22%20opacity%3D%22.55%22%20filter%3D%22url%28%23shadow%29%22%2F%3E%3Cg%20transform%3D%22rotate%28-17%20450%20350%29%22%3E%3Cpath%20d%3D%22M285%20417V296c0-231%20336-231%20336%200v121%22%20fill%3D%22none%22%20stroke%3D%22%232c3039%22%20stroke-width%3D%2262%22%2F%3E%3Cpath%20d%3D%22M285%20405V296c0-231%20336-231%20336%200v109%22%20fill%3D%22none%22%20stroke%3D%22url%28%23chrome%29%22%20stroke-width%3D%2243%22%2F%3E%3Cpath%20d%3D%22M306%20271c15-135%20269-135%20294%200%22%20fill%3D%22none%22%20stroke%3D%22%23f3e5d6%22%20stroke-width%3D%227%22%20opacity%3D%22.65%22%2F%3E%3Crect%20x%3D%22230%22%20y%3D%22335%22%20width%3D%22115%22%20height%3D%22200%22%20rx%3D%2255%22%20fill%3D%22url%28%23chrome%29%22%2F%3E%3Crect%20x%3D%22258%22%20y%3D%22344%22%20width%3D%2286%22%20height%3D%22181%22%20rx%3D%2242%22%20fill%3D%22url%28%23pad%29%22%2F%3E%3Crect%20x%3D%22559%22%20y%3D%22335%22%20width%3D%22115%22%20height%3D%22200%22%20rx%3D%2255%22%20fill%3D%22url%28%23chrome%29%22%2F%3E%3Crect%20x%3D%22558%22%20y%3D%22345%22%20width%3D%2283%22%20height%3D%22180%22%20rx%3D%2241%22%20fill%3D%22url%28%23pad%29%22%2F%3E%3Cpath%20d%3D%22M652%20374v109%22%20stroke%3D%22%23eee9d4%22%20opacity%3D%22.6%22%20stroke-width%3D%223%22%2F%3E%3Ccircle%20cx%3D%22655%22%20cy%3D%22505%22%20r%3D%225%22%20fill%3D%22%23df7a45%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23fff2db%22%20font-family%3D%22Arial%2Csans-serif%22%3E%3Ctext%20x%3D%2248%22%20y%3D%2266%22%20font-size%3D%2215%22%20letter-spacing%3D%225%22%3EARC%20%2F%20SOUND%20STUDY%3C%2Ftext%3E%3Ctext%20x%3D%2248%22%20y%3D%22650%22%20font-size%3D%2217%22%20letter-spacing%3D%222%22%3EFORM%20MEETS%20FEELING.%3C%2Ftext%3E%3Ctext%20x%3D%22804%22%20y%3D%22650%22%20font-size%3D%2217%22%3E01%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.ww-fx-host[data-effect-type="cursor-label"] .art[data-art="2"]{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20900%20700%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22room%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23e7ddcc%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23b8a78d%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22seat%22%20x2%3D%22.8%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23efe9d7%22%2F%3E%3Cstop%20offset%3D%22.38%22%20stop-color%3D%22%23d1c8b3%22%2F%3E%3Cstop%20offset%3D%22.75%22%20stop-color%3D%22%23a99c82%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%238b806d%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22leg%22%3E%3Cstop%20stop-color%3D%22%23a9a39b%22%2F%3E%3Cstop%20offset%3D%22.32%22%20stop-color%3D%22%23f7f4e6%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%23776f64%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d5cbb9%22%2F%3E%3C%2FlinearGradient%3E%3Cfilter%20id%3D%22blur%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2215%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url%28%23room%29%22%20d%3D%22M0%200h900v700H0z%22%2F%3E%3Cpath%20d%3D%22M675%200h225v700H675z%22%20fill%3D%22%23b19e80%22%20opacity%3D%22.38%22%2F%3E%3Cpath%20d%3D%22M0%20512l675-85%20225%2083v190H0z%22%20fill%3D%22%23cfc0a4%22%2F%3E%3Cpath%20d%3D%22M65%200h144v480L65%20504z%22%20fill%3D%22%23f9f4df%22%20opacity%3D%22.45%22%2F%3E%3Cpath%20d%3D%22M250%200h40v470l-40%204z%22%20fill%3D%22%23f9f4df%22%20opacity%3D%22.3%22%2F%3E%3Cellipse%20cx%3D%22480%22%20cy%3D%22586%22%20rx%3D%22207%22%20ry%3D%2234%22%20fill%3D%22%236c5c47%22%20opacity%3D%22.32%22%20filter%3D%22url%28%23blur%29%22%2F%3E%3Cpath%20d%3D%22M350%20452l-43%20131M564%20435l50%20135M377%20429l140%20159%22%20fill%3D%22none%22%20stroke%3D%22url%28%23leg%29%22%20stroke-width%3D%2214%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M295%20350c-27-24-40-81-18-145%2024-72%20201-97%20275-47%2058%2040%2070%20150%2065%20216-5%2063-46%2095-159%20104-118%2010-177-42-163-128z%22%20fill%3D%22url%28%23seat%29%22%2F%3E%3Cpath%20d%3D%22M302%20350c19%2038%20235%2035%20289-14%22%20fill%3D%22none%22%20stroke%3D%22%23f6efdb%22%20stroke-width%3D%224%22%20opacity%3D%22.5%22%2F%3E%3Cpath%20d%3D%22M285%20223c40-51%20185-66%20251-29%22%20fill%3D%22none%22%20stroke%3D%22%23fffae9%22%20stroke-width%3D%226%22%20opacity%3D%22.7%22%2F%3E%3Cpath%20d%3D%22M307%20372c38%2026%20178%2024%20255-7%22%20fill%3D%22none%22%20stroke%3D%22%237a705e%22%20stroke-width%3D%222%22%20opacity%3D%22.5%22%2F%3E%3Cg%20fill%3D%22%234c463b%22%20font-family%3D%22Arial%2Csans-serif%22%3E%3Ctext%20x%3D%2248%22%20y%3D%2266%22%20font-size%3D%2215%22%20letter-spacing%3D%225%22%3EOBJECT%20%2F%20COMFORT%20STUDY%3C%2Ftext%3E%3Ctext%20x%3D%2248%22%20y%3D%22650%22%20font-size%3D%2217%22%20letter-spacing%3D%222%22%3EA%20QUIETER%20KIND%20OF%20DESIGN.%3C%2Ftext%3E%3Ctext%20x%3D%22804%22%20y%3D%22650%22%20font-size%3D%2217%22%3E02%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.ww-fx-host[data-effect-type="cursor-label"] .art[data-art="3"]{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20900%20700%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22space%22%3E%3Cstop%20stop-color%3D%22%233350bd%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23101526%22%2F%3E%3C%2FradialGradient%3E%3ClinearGradient%20id%3D%22ring%22%20x2%3D%22.5%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23d6e6ff%22%2F%3E%3Cstop%20offset%3D%22.22%22%20stop-color%3D%22%236575a5%22%2F%3E%3Cstop%20offset%3D%22.42%22%20stop-color%3D%22%23f3f5ff%22%2F%3E%3Cstop%20offset%3D%22.6%22%20stop-color%3D%22%23263460%22%2F%3E%3Cstop%20offset%3D%22.85%22%20stop-color%3D%22%2394b5f0%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23131b3e%22%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%22ball%22%20cx%3D%22.3%22%20cy%3D%22.2%22%3E%3Cstop%20stop-color%3D%22%23f1f4ff%22%2F%3E%3Cstop%20offset%3D%22.25%22%20stop-color%3D%22%239eb7f8%22%2F%3E%3Cstop%20offset%3D%22.63%22%20stop-color%3D%22%233f5aa0%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2317244e%22%2F%3E%3C%2FradialGradient%3E%3Cfilter%20id%3D%22glow%22%3E%3CfeGaussianBlur%20stdDeviation%3D%2217%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url%28%23space%29%22%20d%3D%22M0%200h900v700H0z%22%2F%3E%3Cg%20stroke%3D%22%23b2c4ff%22%20fill%3D%22none%22%20opacity%3D%22.14%22%3E%3Cellipse%20cx%3D%22450%22%20cy%3D%22370%22%20rx%3D%22374%22%20ry%3D%22210%22%2F%3E%3Cellipse%20cx%3D%22450%22%20cy%3D%22370%22%20rx%3D%22324%22%20ry%3D%22180%22%2F%3E%3Cellipse%20cx%3D%22450%22%20cy%3D%22370%22%20rx%3D%22274%22%20ry%3D%22150%22%2F%3E%3Cpath%20d%3D%22M0%20535h900M0%20600h900M450%20150v550M0%20700l450-550%20450%20550%22%2F%3E%3C%2Fg%3E%3Cellipse%20cx%3D%22466%22%20cy%3D%22568%22%20rx%3D%22193%22%20ry%3D%2224%22%20fill%3D%22%230b1028%22%20filter%3D%22url%28%23glow%29%22%2F%3E%3Cg%20transform%3D%22rotate%28-32%20450%20350%29%22%3E%3Cellipse%20cx%3D%22450%22%20cy%3D%22350%22%20rx%3D%22238%22%20ry%3D%22140%22%20fill%3D%22none%22%20stroke%3D%22url%28%23ring%29%22%20stroke-width%3D%2258%22%2F%3E%3Ccircle%20cx%3D%22450%22%20cy%3D%22350%22%20r%3D%2291%22%20fill%3D%22url%28%23ball%29%22%2F%3E%3Cpath%20d%3D%22M216%20350c0%2078%20104%20141%20234%20141s234-63%20234-141%22%20fill%3D%22none%22%20stroke%3D%22url%28%23ring%29%22%20stroke-width%3D%2258%22%2F%3E%3Cpath%20d%3D%22M218%20363c20%2075%20140%20128%20260%20119%22%20fill%3D%22none%22%20stroke%3D%22%23e5eaff%22%20stroke-width%3D%223%22%20opacity%3D%22.6%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23d0dcff%22%20font-family%3D%22Arial%2Csans-serif%22%3E%3Ctext%20x%3D%2248%22%20y%3D%2266%22%20font-size%3D%2215%22%20letter-spacing%3D%225%22%3EORBIT%20%2F%20MOTION%20STUDY%3C%2Ftext%3E%3Ctext%20x%3D%2248%22%20y%3D%22650%22%20font-size%3D%2217%22%20letter-spacing%3D%222%22%3EA%20DIFFERENT%20PERSPECTIVE.%3C%2Ftext%3E%3Ctext%20x%3D%22804%22%20y%3D%22650%22%20font-size%3D%2217%22%3E03%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.ww-fx-host[data-effect-type="cursor-label"] .fx{padding:25px;background:#111625}.ww-fx-host[data-effect-type="cursor-label"] .cursor-target{padding:0;border:0;border-radius:0;position:relative;overflow:hidden;text-align:left;background:transparent!important}.ww-fx-host[data-effect-type="cursor-label"] .cursor-target .art{display:block;height:360px}.ww-fx-host[data-effect-type="cursor-label"] .cursor-caption{position:absolute;left:20px;bottom:20px;border-radius:99px;background:#e6e9f0;color:#1b2240;padding:10px 16px;font-size:10px;letter-spacing:.08em}.ww-fx-host[data-effect-type="cursor-label"] .cursor-badge{display:grid;place-content:center;position:absolute;left:var(--cx,50%);top:var(--cy,50%);transform:translate(-50%,-50%) scale(.6);width:95px;height:95px;border-radius:50%;background:#d8fc75;color:#16202a;font:11px/1.2 Arial,sans-serif;letter-spacing:.1em;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .25s}.ww-fx-host[data-effect-type="cursor-label"] .fx[data-label=true] .cursor-badge{opacity:1;transform:translate(-50%,-50%) scale(1)}.ww-fx-host[data-effect-type="cursor-label"] .fx[data-reduced-motion=true] .cursor-badge{display:none}@media(max-width:500px){.ww-fx-host[data-effect-type="cursor-label"] .cursor-target .art{height:330px}.ww-fx-host[data-effect-type="cursor-label"] .cursor-caption{font-size:8px;left:12px;bottom:12px}}
.ww-fx-host{display:block;position:relative;isolation:isolate;max-width:100%;background:#111211;color:#f4f0e7}.ww-fx-host>.ww-fx-controls{display:flex;gap:15px;align-items:center;padding:12px 20px;font:12px Arial,sans-serif}.ww-fx-host .ww-fx-controls button{color:inherit;border:1px solid #ffffff55;background:transparent;border-radius:99px;min-height:42px;padding:8px 18px;cursor:pointer}.ww-fx-host .ww-fx-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}.ww-fx-host .cursor-target{display:block;color:inherit;text-decoration:none}.ww-fx-host .fx{min-height:500px}.ww-fx-host .fx .art{position:relative}.ww-fx-host .fx .portal-art,.ww-fx-host .fx .thumb-destination,.ww-fx-host .fx .scene-art{position:absolute}

{% endstylesheet %}
{% schema %}
{
  "name": "WW cursor-label",
  "settings": [
    {
      "type": "text",
      "id": "heading_1",
      "label": "Heading 1",
      "default": "ORBIT — EXPLORE THE STUDY"
    },
    {
      "type": "image_picker",
      "id": "image_3",
      "label": "Image 3"
    },
    {
      "type": "url",
      "id": "link",
      "label": "Destination"
    }
  ],
  "presets": [
    {
      "name": "WW cursor-label"
    }
  ]
}
{% endschema %}

通用壳层需要填入所选效果。每个模块接入一种效果;多种效果需建立明确的注册与 Section 对应关系。

参考资料

示例范围与许可

示例由 WESWOO 和注明的开源作者提供,复制代码时请保留相应许可。在线项目画面与摄影的权利归原权利人;下载文件使用占位图片,接入时请替换为有权使用的素材。

Shopify/dawn · modal / slider base classesShopify/dawn · product media galleryShopify/dawn · license

资料核对 · 2026-11-24