update
This commit is contained in:
1 parent
2ce1c9056a
commit
9a726dbd9f
13 files changed
+8547
-5835
No files matched your search
+321
-311
@@ -3,356 +3,366 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>其他功能 - 功能工具箱</title>
|
||||
<title>其他功能 · 功能工具箱</title>
|
||||
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="stylesheet" href="assets/styles.css" />
|
||||
<script src="assets/common.js"></script>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family:
|
||||
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||
"Helvetica Neue", Arial, sans-serif;
|
||||
background: radial-gradient(
|
||||
circle at center,
|
||||
#ff9a9e 0%,
|
||||
#fad0c4 25%,
|
||||
#fad0c4 50%,
|
||||
#ff9a9e 75%,
|
||||
#fad0c4 100%
|
||||
);
|
||||
background-size: 400% 400%;
|
||||
animation: pinkGlow 10s ease-in-out infinite;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
@keyframes pinkGlow {
|
||||
0%,
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
background: white;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
||||
padding: 60px 40px;
|
||||
text-align: center;
|
||||
max-width: 600px;
|
||||
width: 100%;
|
||||
.hero-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding: clamp(26px, 4vw, 44px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
background:
|
||||
radial-gradient(
|
||||
560px 260px at 0% 0%,
|
||||
rgba(99, 102, 241, 0.15),
|
||||
transparent 65%
|
||||
),
|
||||
radial-gradient(
|
||||
480px 240px at 100% 100%,
|
||||
rgba(168, 85, 247, 0.12),
|
||||
transparent 65%
|
||||
),
|
||||
var(--surface);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.container::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -50%;
|
||||
left: -50%;
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fecfef, #fecfef);
|
||||
opacity: 0.15;
|
||||
animation: rotate 10s linear infinite;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.construction-icon {
|
||||
font-size: 80px;
|
||||
margin-bottom: 30px;
|
||||
animation: bounce 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%,
|
||||
20%,
|
||||
50%,
|
||||
80%,
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
40% {
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
60% {
|
||||
transform: translateY(-15px);
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #2c3e50;
|
||||
font-size: 32px;
|
||||
margin-bottom: 20px;
|
||||
.hero-card .hero-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: var(--warning-soft);
|
||||
color: var(--warning);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
display: inline-block;
|
||||
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
|
||||
color: white;
|
||||
padding: 8px 20px;
|
||||
border-radius: 25px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 25px;
|
||||
animation: pulse 2s infinite;
|
||||
.hero-card h2 {
|
||||
margin: 14px 0 8px;
|
||||
font-size: clamp(1.4rem, 3vw, 1.9rem);
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(238, 90, 36, 0.7);
|
||||
}
|
||||
70% {
|
||||
box-shadow: 0 0 0 15px rgba(238, 90, 36, 0);
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 rgba(238, 90, 36, 0);
|
||||
}
|
||||
.hero-card p {
|
||||
max-width: 40em;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.description {
|
||||
color: #5a6c7d;
|
||||
font-size: 18px;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 30px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
.progress-inline {
|
||||
max-width: 420px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.features-coming {
|
||||
background: #f8f9fa;
|
||||
border-radius: 15px;
|
||||
padding: 30px;
|
||||
margin: 30px 0;
|
||||
border-left: 5px solid #3498db;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.features-coming h3 {
|
||||
color: #2c3e50;
|
||||
font-size: 20px;
|
||||
margin-bottom: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.feature-list {
|
||||
list-style: none;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.feature-list li {
|
||||
padding: 10px 0;
|
||||
color: #5a6c7d;
|
||||
font-size: 16px;
|
||||
.progress-inline .progress-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 0.76rem;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.feature-list li::before {
|
||||
content: "🚧";
|
||||
margin-right: 10px;
|
||||
font-size: 18px;
|
||||
.roadmap-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: #ecf0f1;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
margin: 20px 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
.roadmap-card {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
transition:
|
||||
border-color var(--rate) ease,
|
||||
transform var(--rate) ease;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #3498db, #2ecc71);
|
||||
border-radius: 4px;
|
||||
width: 30%;
|
||||
animation: progressAnimation 3s ease-in-out infinite alternate;
|
||||
.roadmap-card:hover {
|
||||
border-color: var(--border-strong);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@keyframes progressAnimation {
|
||||
from {
|
||||
width: 30%;
|
||||
}
|
||||
to {
|
||||
width: 65%;
|
||||
}
|
||||
.roadmap-card .rm-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
flex: none;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 10px;
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.progress-text {
|
||||
color: #7f8c8d;
|
||||
font-size: 14px;
|
||||
margin-top: 10px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.particles {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.particle {
|
||||
position: absolute;
|
||||
background: #ff9a9e;
|
||||
border-radius: 50%;
|
||||
opacity: 0.15;
|
||||
animation: float 6s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.particle:nth-child(1) {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
left: 10%;
|
||||
animation-delay: 0s;
|
||||
}
|
||||
|
||||
.particle:nth-child(2) {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
left: 30%;
|
||||
animation-delay: 1s;
|
||||
}
|
||||
|
||||
.particle:nth-child(3) {
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
left: 60%;
|
||||
animation-delay: 2s;
|
||||
}
|
||||
|
||||
.particle:nth-child(4) {
|
||||
.roadmap-card .rm-icon svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
left: 80%;
|
||||
animation-delay: 3s;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0) rotate(0deg);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-20px) rotate(180deg);
|
||||
}
|
||||
.roadmap-card h3 {
|
||||
font-size: 0.86rem;
|
||||
font-weight: 650;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.roadmap-card p {
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.5;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.roadmap-card .badge {
|
||||
font-size: 0.64rem;
|
||||
padding: 1px 7px;
|
||||
}
|
||||
|
||||
.contact-card {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
margin-top: 16px;
|
||||
padding: 18px 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.contact-card .contact-body {
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.contact-card h3 {
|
||||
font-size: 0.88rem;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.contact-card p {
|
||||
font-size: 0.78rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.section-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin: 26px 2px 12px;
|
||||
}
|
||||
|
||||
.section-head h2 {
|
||||
font-size: 1.02rem;
|
||||
}
|
||||
|
||||
.section-head span {
|
||||
font-size: 0.76rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="particles">
|
||||
<div class="particle"></div>
|
||||
<div class="particle"></div>
|
||||
<div class="particle"></div>
|
||||
<div class="particle"></div>
|
||||
<div class="tool-page">
|
||||
<header class="tool-header">
|
||||
<div class="tool-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<rect x="3" y="3" width="7" height="7" rx="1.6" />
|
||||
<rect x="14" y="3" width="7" height="7" rx="1.6" />
|
||||
<rect x="3" y="14" width="7" height="7" rx="1.6" />
|
||||
<rect x="14" y="14" width="7" height="7" rx="1.6" />
|
||||
</svg>
|
||||
</div>
|
||||
<div>
|
||||
<h1>其他功能</h1>
|
||||
<p>更多实用工具正在规划与开发中,欢迎告诉我们你最想要什么。</p>
|
||||
</div>
|
||||
<div class="header-actions">
|
||||
<button
|
||||
class="btn btn--icon btn--ghost"
|
||||
data-theme-toggle
|
||||
title="切换主题"
|
||||
aria-label="切换主题"
|
||||
>
|
||||
<svg class="icon-moon" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M21 12.8A8.5 8.5 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z" />
|
||||
</svg>
|
||||
<svg class="icon-sun" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="4" />
|
||||
<path
|
||||
d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="hero-card">
|
||||
<span class="hero-badge">● 持续更新中</span>
|
||||
<h2>工具箱还在长大</h2>
|
||||
<p>
|
||||
现有工具已经覆盖日常计算、编码、图片处理等场景。接下来会继续补充轻量、实用、完全本地运行的
|
||||
小工具,让这个页面成为你收藏夹里真正用得上的那一页。
|
||||
</p>
|
||||
<div class="progress-inline">
|
||||
<div class="progress-head">
|
||||
<span>本期规划进度</span>
|
||||
<span>55%</span>
|
||||
</div>
|
||||
<div class="progress-track">
|
||||
<div class="progress-bar" style="width: 55%"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="section-head">
|
||||
<h2>候选功能</h2>
|
||||
<span>按优先级陆续上线</span>
|
||||
</div>
|
||||
|
||||
<div class="construction-icon">🚧</div>
|
||||
<h1>其他功能</h1>
|
||||
<div class="status-badge">正在开发中</div>
|
||||
<div class="roadmap-grid">
|
||||
<div class="roadmap-card">
|
||||
<span class="rm-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<rect x="3" y="3" width="7" height="7" rx="1" />
|
||||
<rect x="14" y="3" width="7" height="7" rx="1" />
|
||||
<rect x="3" y="14" width="7" height="7" rx="1" />
|
||||
<path d="M14 14h3v3h-3zM20 14h1M14 20h1M17 20h4v1" />
|
||||
</svg>
|
||||
</span>
|
||||
<div>
|
||||
<h3>二维码生成器</h3>
|
||||
<p>把文本、链接或 Wi-Fi 信息生成可下载的二维码。</p>
|
||||
<span class="badge">计划中</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="description">
|
||||
更多实用功能正在紧张开发中,敬请期待!我们正在为您打造更加完善的工具集合。
|
||||
</p>
|
||||
<div class="roadmap-card">
|
||||
<span class="rm-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<rect x="5" y="10" width="14" height="10" rx="2" />
|
||||
<path d="M8 10V7a4 4 0 0 1 8 0v3M12 14v2" />
|
||||
</svg>
|
||||
</span>
|
||||
<div>
|
||||
<h3>密码生成器</h3>
|
||||
<p>按长度与字符规则生成高强度随机密码。</p>
|
||||
<span class="badge">计划中</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="features-coming">
|
||||
<h3>🔮 即将推出的功能</h3>
|
||||
<ul class="feature-list">
|
||||
<li>文本处理工具</li>
|
||||
<li>图片压缩工具</li>
|
||||
<li>二维码生成器</li>
|
||||
<li>密码生成器</li>
|
||||
<li>单位转换工具</li>
|
||||
<li>时间戳转换器</li>
|
||||
<li>JSON格式化工具</li>
|
||||
<li>Base64编码工具</li>
|
||||
</ul>
|
||||
<div class="roadmap-card">
|
||||
<span class="rm-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M4 7h6M7 4v6M14 17h6M17 14v6" />
|
||||
<path d="m13 5 6 6M5 13l6 6" />
|
||||
</svg>
|
||||
</span>
|
||||
<div>
|
||||
<h3>单位换算</h3>
|
||||
<p>长度、重量、温度、面积等常用单位快速换算。</p>
|
||||
<span class="badge">计划中</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="roadmap-card">
|
||||
<span class="rm-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="9" />
|
||||
<path d="M12 7v5l3 2" />
|
||||
</svg>
|
||||
</span>
|
||||
<div>
|
||||
<h3>时间戳转换</h3>
|
||||
<p>Unix 时间戳与本地日期时间双向转换。</p>
|
||||
<span class="badge">计划中</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="roadmap-card">
|
||||
<span class="rm-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M8 3H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z" />
|
||||
<path d="M19 13h-3a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2Z" />
|
||||
<path d="M8 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2Z" />
|
||||
</svg>
|
||||
</span>
|
||||
<div>
|
||||
<h3>文本对比</h3>
|
||||
<p>逐行比较两段文本,高亮新增与删除内容。</p>
|
||||
<span class="badge">计划中</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="roadmap-card">
|
||||
<span class="rm-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M4 5a2 2 0 0 1 2-2h8l6 6v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5Z" />
|
||||
<path d="M14 3v6h6M8 14h8M8 17h5" />
|
||||
</svg>
|
||||
</span>
|
||||
<div>
|
||||
<h3>Markdown 预览</h3>
|
||||
<p>边写边渲染 Markdown,适合整理笔记与文档。</p>
|
||||
<span class="badge">计划中</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="roadmap-card">
|
||||
<span class="rm-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<rect x="3" y="5" width="18" height="14" rx="2" />
|
||||
<circle cx="9" cy="11" r="2" />
|
||||
<path d="m5 17 4-4 3 3 2-2 5 5" />
|
||||
</svg>
|
||||
</span>
|
||||
<div>
|
||||
<h3>图片加水印</h3>
|
||||
<p>为图片批量添加文字或图片水印,本地完成。</p>
|
||||
<span class="badge">计划中</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="roadmap-card">
|
||||
<span class="rm-icon">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="9" />
|
||||
<path d="M12 3a9 9 0 0 1 0 18 9 9 0 0 1 0-18ZM3 12h18" />
|
||||
</svg>
|
||||
</span>
|
||||
<div>
|
||||
<h3>颜色渐变生成</h3>
|
||||
<p>生成和谐的 CSS 渐变并复制代码。</p>
|
||||
<span class="badge">计划中</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill"></div>
|
||||
<div class="contact-card">
|
||||
<span class="rm-icon" style="
|
||||
width: 42px; height: 42px; display: grid; place-items: center;
|
||||
border-radius: 12px; background: var(--accent-soft); color: var(--accent);
|
||||
">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true" style="width: 20px; height: 20px">
|
||||
<rect x="3" y="5" width="18" height="14" rx="2" />
|
||||
<path d="m3 7 9 6 9-6" />
|
||||
</svg>
|
||||
</span>
|
||||
<div class="contact-body">
|
||||
<h3>想要某个工具?</h3>
|
||||
<p>告诉我们你的使用场景,我们会优先安排实现。</p>
|
||||
</div>
|
||||
<a class="btn btn--soft" href="mailto:gogongxt@163.com">
|
||||
联系 gogongxt@163.com
|
||||
</a>
|
||||
</div>
|
||||
<div class="progress-text">开发进度:约 40% 完成</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 添加一些动态交互效果
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
// 随机改变粒子的动画时间
|
||||
const particles = document.querySelectorAll(".particle");
|
||||
particles.forEach((particle, index) => {
|
||||
const randomDelay = Math.random() * 3;
|
||||
const randomDuration = 4 + Math.random() * 4;
|
||||
particle.style.animationDelay = `${randomDelay}s`;
|
||||
particle.style.animationDuration = `${randomDuration}s`;
|
||||
});
|
||||
|
||||
// 添加点击效果
|
||||
const container = document.querySelector(".container");
|
||||
container.addEventListener("click", function (e) {
|
||||
const ripple = document.createElement("div");
|
||||
ripple.style.position = "absolute";
|
||||
ripple.style.width = "20px";
|
||||
ripple.style.height = "20px";
|
||||
ripple.style.background = "rgba(255, 154, 158, 0.5)";
|
||||
ripple.style.borderRadius = "50%";
|
||||
ripple.style.transform = "translate(-50%, -50%)";
|
||||
ripple.style.pointerEvents = "none";
|
||||
ripple.style.left = e.clientX - container.offsetLeft + "px";
|
||||
ripple.style.top = e.clientY - container.offsetTop + "px";
|
||||
ripple.style.animation = "rippleEffect 0.6s ease-out";
|
||||
|
||||
container.appendChild(ripple);
|
||||
|
||||
setTimeout(() => {
|
||||
ripple.remove();
|
||||
}, 600);
|
||||
});
|
||||
});
|
||||
|
||||
// 添加涟漪动画
|
||||
const style = document.createElement("style");
|
||||
style.textContent = `
|
||||
@keyframes rippleEffect {
|
||||
to {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
`;
|
||||
document.head.appendChild(style);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Reference in new issue
Block a user