Basinfy/Basinfy-SaaS-Studio / .claude/skills/saas-frontend-taste
saas-frontend-taste
VerifiedDesign, refine, and verify SaaS screens with anti-slop copy and responsive layout checks.
assets/moments/window-parallax/moment.js
View on GitHub/*
window-parallax - one wide photograph seen through a frame moves a little slower than the page, so
the frame reads as a window onto a larger picture. Scrubbed to the scrollbar, a few percent of
travel, no pin. Under reduced motion and without script the photograph stands.
<figure class="frame frame--photo mo-wp" data-moment="window-parallax" data-moment-opts='{"travel": 12}'>
<img src="…" alt="…" width="2400" height="1200">
</figure>
The host sets the frame's size (a wide band, 16:7 to 3:1); the picture is cut taller than it.
opts: travel (how far the picture moves, % of the frame's height each way; 12, 4-20).
*/
export default function (root, opts, lib) {
const img = root.querySelector('img');
if (!img) return {};
root.classList.add('mo-wp');
if (lib.reduced()) return {};
const travel = lib.clamp(+opts.travel || 12, 4, 20);
root.style.setProperty('--mo-travel', `${travel}%`);
root.classList.add('is-live');
const s = lib.scrub(root, (p, r) => { img.style.transform = `translateY(${((0.5 - p) * 2 * (travel / 100) * r.height).toFixed(1)}px)`; }, { mode: 'view' });
return { destroy() { s.destroy(); img.style.transform = ''; root.classList.remove('is-live'); } };
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |