Compare commits
2 Commits
d24821c287
...
2d87b7bdfd
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d87b7bdfd | |||
| aa67005534 |
@@ -209,6 +209,20 @@
|
||||
"message": "chore: gitignore playwright QA 产物",
|
||||
"hash": "47c45e3",
|
||||
"files_changed": 1
|
||||
},
|
||||
{
|
||||
"ts": "2026-04-24T01:12:29+08:00",
|
||||
"type": "commit",
|
||||
"message": "auto-save 2026-04-24 01:12 (+1, ~2)",
|
||||
"hash": "71ad32f",
|
||||
"files_changed": 3
|
||||
},
|
||||
{
|
||||
"ts": "2026-04-24T01:16:46+08:00",
|
||||
"type": "commit",
|
||||
"message": "feat: 加 8 个 Live Demo + hero 文字 stagger 动画",
|
||||
"hash": "d24821c",
|
||||
"files_changed": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
13
index.html
13
index.html
@@ -266,8 +266,13 @@
|
||||
will-change:transform;
|
||||
}
|
||||
|
||||
/* hero animated logo */
|
||||
h1 .hero-letter{display:inline-block;will-change:transform,opacity,color}
|
||||
/* hero animated logo —— 每个字母自带渐变剪影(父级 -webkit-text-fill-color:transparent 不继承背景,这里补回) */
|
||||
h1 .hero-letter{
|
||||
display:inline-block;will-change:transform,opacity,color;
|
||||
background:linear-gradient(135deg,var(--accent) 0%,var(--accent3) 55%,var(--accent2) 100%);
|
||||
-webkit-background-clip:text;background-clip:text;
|
||||
-webkit-text-fill-color:transparent;
|
||||
}
|
||||
|
||||
/* online badge */
|
||||
.live-badge{
|
||||
@@ -1591,8 +1596,8 @@ stickys.<span class="fn">forEach</span>(s => s.<span class="fn">revert</span>
|
||||
let splitInstance = null;
|
||||
function ensureSplit() {
|
||||
if (splitInstance) splitInstance.revert && splitInstance.revert();
|
||||
if (text && text.split) {
|
||||
splitInstance = text.split(textTarget, { chars: { class: 'letter' } });
|
||||
if (text && text.splitText) {
|
||||
splitInstance = text.splitText(textTarget, { chars: { class: 'letter' } });
|
||||
}
|
||||
}
|
||||
function textDemo(kind) {
|
||||
|
||||
Reference in New Issue
Block a user