UNPKG

lightswind

Version:

A professionally designed animate react component library & templates market that brings together functionality, accessibility, and beautiful aesthetics for modern applications.

25 lines (24 loc) 1.25 kB
"use client"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; const OrbitCard = ({ children, className }) => { return (_jsxs("div", { className: `relative ${className} rounded-xl`, children: [_jsx("div", { className: "absolute inset-0 z-0 flex items-center justify-center rounded-xl bg-background", children: _jsx("div", { className: "absolute h-full w-full animate-orbit-glow rounded-xl", children: _jsx("div", { className: "h-full w-full rounded-xl bg-transparent shadow-[0_0_30px_10px_rgba(59,130,246,0.5)]" }) }) }), _jsx("div", { className: "relative z-10 rounded-xl bg-background p-6 ", children: children }), _jsx("style", { jsx: true, children: ` @keyframes orbit-glow { 0% { transform: scale(1); box-shadow: 0 0 30px 10px rgba(59, 130, 246, 0.5); } 50% { transform: scale(1.05); box-shadow: 0 0 40px 20px rgba(59, 130, 246, 0.3); } 100% { transform: scale(1); box-shadow: 0 0 30px 10px rgba(59, 130, 246, 0.5); } } .animate-orbit-glow { animation: orbit-glow 4s ease-in-out infinite; } ` })] })); }; export default OrbitCard;