feat: KolayTercih lansman videosu (Remotion, v3)
64 saniyelik, kesintisiz döngü lansman filmi; 9:16 ve 16:9. - remocn.dev bileşenleri (sheen-slide-in, tracking-in, gradient-scale-cut-text, outline-fill-track-text, perspective-marquee, path-ride, zoom-blur, lens-zoom) KolayTercih piksel diline uyarlandı (src/kinetik.tsx) - Sahne içi imleç + imleci takip eden kamera, piksel iz ve tık patlaması - Sessizlik → BAM kurgusu (lensZoom), punch zoom ve hareket bulanıklığı - Müzik ve efektler numpy ile sentezlendi (ses/uret.py), zaman.json tek kaynak - Örnek taban sıralamaları gerçek YÖK Atlas 2026 kayıtları Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
53
src/remocn/zoom-blur.tsx
Normal file
53
src/remocn/zoom-blur.tsx
Normal file
@@ -0,0 +1,53 @@
|
||||
"use client";
|
||||
|
||||
import type {
|
||||
TransitionPresentation,
|
||||
TransitionPresentationComponentProps,
|
||||
} from "@remotion/transitions";
|
||||
import type React from "react";
|
||||
import { AbsoluteFill } from "remotion";
|
||||
|
||||
export type ZoomBlurProps = {
|
||||
blur?: number;
|
||||
rise?: number;
|
||||
};
|
||||
|
||||
const ZoomBlurPresentation: React.FC<
|
||||
TransitionPresentationComponentProps<ZoomBlurProps>
|
||||
> = ({
|
||||
children,
|
||||
presentationProgress,
|
||||
presentationDirection,
|
||||
passedProps,
|
||||
}) => {
|
||||
const { blur = 16, rise = 0 } = passedProps;
|
||||
const entering = presentationDirection === "entering";
|
||||
const p = presentationProgress;
|
||||
|
||||
const style: React.CSSProperties = entering
|
||||
? {
|
||||
opacity: p,
|
||||
transform: `scale(${0.9 + p * 0.1})${
|
||||
rise > 0 ? ` translateY(${(1 - p) * rise}px)` : ""
|
||||
}`,
|
||||
filter: p < 1 ? `blur(${(1 - p) * blur}px)` : undefined,
|
||||
}
|
||||
: {
|
||||
opacity: 1 - p,
|
||||
transform: `scale(${1 + p * 0.12})${
|
||||
rise > 0 ? ` translateY(${-p * rise}px)` : ""
|
||||
}`,
|
||||
filter: p > 0 ? `blur(${p * blur}px)` : undefined,
|
||||
};
|
||||
|
||||
return <AbsoluteFill style={style}>{children}</AbsoluteFill>;
|
||||
};
|
||||
|
||||
export function zoomBlur(
|
||||
props: ZoomBlurProps = {},
|
||||
): TransitionPresentation<ZoomBlurProps> {
|
||||
return {
|
||||
component: ZoomBlurPresentation,
|
||||
props,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user