Files
pbakaus_impeccable/public/js/utils/reveal.js
T
Paul BakausandClaude Opus 4.5 5d65154dee Fix: Restore public directory from accidental regression
Commit 3d9f4ae accidentally reverted public/app.js and public/css/main.css
(plus other files) to old versions. This broke the site because:
- app.js imported from deleted files (commands.js, skills.js)
- main.css lost 1200+ lines of Renaissance redesign (split comparison, etc.)

Restored from commit 343e342 which had the working frontend.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 13:38:19 -08:00

18 lines
280 B
JavaScript

import { inView } from "motion";
export function initScrollReveal() {
const revealElements = document.querySelectorAll("[data-reveal]");
revealElements.forEach((el) => {
inView(
el,
() => {
el.classList.add("revealed");
},
{ margin: "-50px" },
);
});
}