mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 19:19:37 +08:00
- 准入 10 项 installable 技能:agent-reach、dingtalk-api、follow-builders、humanizer-zh、karpathy-guidelines、marketingskills、netease-skills、wecom-cli(原 pin 不变),以及完整 MIT 本地版 ai-news-radar(LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319)和 ClawHub 1.1.1 完整 ZIP 的 amap-jsapi-skill(sha256 9468743ee18dbe1704e8a98f47f6628d6a4e6acec30a05f0b8f59a07603d011f)。 - 瑞幸、MiniMax 图片/语音、LumaRescue、美团跑腿、Ian 小黑、女娲 继续 listing-only。 - 高德许可按 SKILL.md 的 MIT 声明保守记录,skill-card/ClawHub 写 MIT-0 的差异已在 ADMISSION.md 披露。 - validate、translate 通过;CodeQL 对上游原样 update_news.py 的 5 条告警经 mashagua 确认忽略。
32 lines
1.3 KiB
JavaScript
32 lines
1.3 KiB
JavaScript
(function () {
|
|
if (!window.gsap) return;
|
|
|
|
const mm = gsap.matchMedia();
|
|
|
|
mm.add("(prefers-reduced-motion: no-preference)", function () {
|
|
gsap.defaults({ duration: 0.55, ease: "power3.out" });
|
|
|
|
// Intro / list entry animations intentionally live in styles.css as
|
|
// transform-only @keyframes: any JS "from" tween that touches opacity
|
|
// strands elements invisible when the tab is hidden mid-flight, because
|
|
// the GSAP ticker freezes while rendering is paused.
|
|
|
|
// Section scroll reveal via IntersectionObserver. Keep sections visible:
|
|
// hiding whole content blocks can leave blank viewports after responsive
|
|
// reflow or rapid mobile scrolling.
|
|
const revealEls = document.querySelectorAll(".waytoagi-wrap, .list-wrap");
|
|
if (revealEls.length && window.IntersectionObserver) {
|
|
gsap.set(revealEls, { y: 14 });
|
|
const observer = new IntersectionObserver(function (entries) {
|
|
entries.forEach(function (entry) {
|
|
if (entry.isIntersecting) {
|
|
gsap.to(entry.target, { y: 0, duration: 0.45, clearProps: "transform" });
|
|
observer.unobserve(entry.target);
|
|
}
|
|
});
|
|
}, { threshold: 0.08 });
|
|
revealEls.forEach(function (el) { observer.observe(el); });
|
|
}
|
|
});
|
|
}());
|