reactbits-mcp-server
Version:
MCP Server for React Bits - Access 99+ React components with animations, backgrounds, and UI elements
45 lines (42 loc) • 1.37 kB
JavaScript
import { generateCliCommands } from '@/utils/utils';
import code from '@content/Animations/PixelTransition/PixelTransition.jsx?raw';
import css from '@content/Animations/PixelTransition/PixelTransition.css?raw';
import tailwind from '@tailwind/Animations/PixelTransition/PixelTransition.jsx?raw';
import tsCode from '@ts-default/Animations/PixelTransition/PixelTransition.tsx?raw';
import tsTailwind from '@ts-tailwind/Animations/PixelTransition/PixelTransition.tsx?raw';
export const pixelTransition = {
...(generateCliCommands('Animations/PixelTransition')),
installation: `npm i gsap`,
usage: `import PixelTransition from './PixelTransition';
<PixelTransition
firstContent={
<img
src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/1200px-Cat03.jpg"
alt="default pixel transition content, a cat!"
style={{ width: "100%", height: "100%", objectFit: "cover" }}
/>
}
secondContent={
<div
style={{
width: "100%",
height: "100%",
display: "grid",
placeItems: "center",
backgroundColor: "#111"
}}
>
<p style={{ fontWeight: 900, fontSize: "3rem", color: "#ffffff" }}>Meow!</p>
</div>
}
gridSize={12}
pixelColor='#ffffff'
animationStepDuration={0.4}
className="custom-pixel-card"
/>`,
code,
css,
tailwind,
tsCode,
tsTailwind
}