Skip to content

Commit

Permalink
Creeper? Aww man
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Oct 7, 2023
1 parent a0f4a3a commit 4bd5506
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion components/POAPModal/Creeper.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
/* eslint-disable sonarjs/no-identical-functions */
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
'use client';

import { useState } from 'react';
import { useEffect, useState } from 'react';

export const Creeper = () => {
const [blinkAnimationTriggered, setBlinkAnimationTriggered] =
useState(false);

// every 5 seconds, blink
useEffect(() => {
const interval = setInterval(() => {
setBlinkAnimationTriggered(true);
setTimeout(() => {
setBlinkAnimationTriggered(false);
}, 250);
}, 10_000);

return () => clearInterval(interval);
}, [0]);

return (
<div className="absolute top-0 left-4 h-12 sm:w-32 hidden xs:block -translate-y-[1px]">
<div
Expand Down

0 comments on commit 4bd5506

Please sign in to comment.