{"version":3,"file":"Flicker_delay_0_3.6DG1e5OR.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mC05w0QrwhKUVtU1TZGX/aVWgNgAu46FZOG7whmi6/Flicker_delay_0_3.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{RenderTarget}from\"framer\";export function withElectricFlicker(Component){return props=>{// Check if we are currently on the Framer design canvas\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;// If on the canvas, return the component normally so you can see and edit it\nif(isCanvas){return /*#__PURE__*/_jsx(Component,{...props});}// If on preview or the live site, return the animated version\nreturn /*#__PURE__*/_jsx(Component,{...props,initial:{opacity:0,filter:\"brightness(1)\"},whileInView:{// Rapidly jump between opacities to simulate a broken bulb/electric spark\nopacity:[0,1,0,1,.3,1,.8,1],// Briefly spike the brightness for that \"zap\" feel\nfilter:[\"brightness(1)\",\"brightness(2)\",\"brightness(1)\",\"brightness(1.5)\",\"brightness(1)\"]},viewport:{once:true,margin:\"-50px\"},transition:{duration:.8,delay:.3,ease:\"linear\",// These times correspond to the array values above, dictating exactly when each flash happens\ntimes:[0,.1,.15,.2,.4,.5,.8,1]}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withElectricFlicker\":{\"type\":\"reactHoc\",\"name\":\"withElectricFlicker\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Flicker_delay_0_3.map"],"mappings":"qJAA4E,SAAgB,EAAoB,EAAU,CAAC,MAAO,IACnH,EAAa,SAAS,GAAG,EAAa,OACpB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CACvC,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,EAAE,OAAO,gBAAgB,CAAC,YAAY,CACpG,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAC3B,OAAO,CAAC,gBAAgB,gBAAgB,gBAAgB,kBAAkB,gBAAgB,CAAC,CAAC,SAAS,CAAC,KAAK,GAAK,OAAO,QAAQ,CAAC,WAAW,CAAC,SAAS,GAAG,MAAM,GAAG,KAAK,SACtK,MAAM,CAAC,EAAE,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,kBANU,IAAiC"}