mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-15 15:46:30 +03:00
Adds floating corner badges to clarify which side is before/after, removes the "With Skills" divider label, and extends the slider range to account for the skewed divider so it can fully reveal each side. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
269 B
JavaScript
15 lines
269 B
JavaScript
import { initSplitCompare } from "../effects/split-compare.js";
|
|
|
|
export function initLensEffect() {
|
|
const container = document.getElementById("lens-comparison");
|
|
if (!container) return;
|
|
|
|
initSplitCompare(container, {
|
|
defaultPosition: 70,
|
|
skewOffset: 8
|
|
});
|
|
}
|
|
|
|
|
|
|