{"version":3,"file":"gradientbars_Background.BdzzIsEd.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/d6IOphiMPIQZqhZoDBLq/qtfa7BhtnGov5YeZcrsc/gradientbars_Background.js"],"sourcesContent":["// Animated gradient bars background with pulsing animation\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 200\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function GradientBarsBackground(props){const{numBars=7,gradientFrom=\"rgb(255, 60, 0)\",gradientTo=\"transparent\",animationDuration=2,backgroundColor=\"rgb(10, 10, 10)\"}=props;const calculateHeight=(index,total)=>{const position=index/(total-1);const maxHeight=100;const minHeight=30;const center=.5;const distanceFromCenter=Math.abs(position-center);const heightPercentage=Math.pow(distanceFromCenter*2,1.2);return minHeight+(maxHeight-minHeight)*heightPercentage;};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n        @keyframes pulseBar {\n          0% { transform: scaleY(var(--initial-scale)); }\n          100% { transform: scaleY(calc(var(--initial-scale) * 0.7)); }\n        }\n      `}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",minWidth:\"5px\",minHeight:\"5px\",backgroundColor,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",width:\"100%\",height:\"100%\",transform:\"translateZ(0)\",backfaceVisibility:\"hidden\",alignItems:\"flex-end\"},children:Array.from({length:numBars}).map((_,index)=>{const height=calculateHeight(index,numBars);return /*#__PURE__*/_jsx(\"div\",{style:{flex:\"1\",minWidth:0,height:\"100%\",background:`linear-gradient(to top, ${gradientFrom}, ${gradientTo})`,transform:`scaleY(${height/100})`,transformOrigin:\"bottom\",transition:\"transform 0.5s ease-in-out\",animation:`pulseBar ${animationDuration}s ease-in-out infinite alternate`,animationDelay:`${index*.1}s`,outline:\"1px solid rgba(0, 0, 0, 0)\",boxSizing:\"border-box\",// @ts-ignore\n\"--initial-scale\":height/100}},index);})})})]});}// Property Controls for Framer's UI\naddPropertyControls(GradientBarsBackground,{numBars:{type:ControlType.Number,title:\"Number of Bars\",min:3,max:20,step:1,defaultValue:7,displayStepper:true},gradientFrom:{type:ControlType.Color,title:\"Gradient Color\",defaultValue:\"rgb(255, 60, 0)\"},gradientTo:{type:ControlType.Color,title:\"Gradient To\",defaultValue:\"rgba(255, 60, 0, 0)\"},animationDuration:{type:ControlType.Number,title:\"Animation Speed\",min:.5,max:5,step:.1,defaultValue:2,unit:\"s\",displayStepper:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgb(10, 10, 10)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientBarsBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"200\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./gradientbars_Background.map"],"mappings":"0KAMG,SAAwB,EAAuB,EAAM,CAAC,GAAK,CAAC,UAAQ,EAAE,eAAa,kBAAkB,aAAW,cAAc,oBAAkB,EAAE,kBAAgB,mBAAmB,EAAY,GAAiB,EAAM,IAAQ,CAAC,IAAM,EAAS,GAAO,EAAM,GAAuK,MAAO,IAAW,IAAtG,KAAK,IAAI,EAArC,GAAqD,CAAoD,IAAE,KAA+D,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;QAK5iB,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,SAAS,MAAM,UAAU,MA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