Skip to content

Commit

Permalink
Disable timer hover state
Browse files Browse the repository at this point in the history
  • Loading branch information
ethn1ee committed Dec 6, 2024
1 parent 2b30026 commit 2135105
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/app/components/timer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Timer = () => {
const targetDate = new Date("March 21, 2025 00:00:00").getTime();
const [timeLeft, setTimeLeft] = useState({});

const [isHovered, setIsHovered] = useState(false);
const [isHovered, setIsHovered] = useState(true);

useEffect(() => {
const interval = setInterval(() => {
Expand Down Expand Up @@ -42,14 +42,9 @@ const Timer = () => {

return (
<motion.div
onMouseEnter={() => {
setIsHovered(true);
}}
onMouseLeave={() => {
setIsHovered(false);
}}
animate={{ padding: isHovered ? "16px" : "0px" }}
transition={{ duration: 0.5, ease: "easeOut" }}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ delay: 1, duration: 0.5, ease: "easeOut" }}
className="hidden md:block fixed bottom-6 right-6 z-40"
>
{/* TIMER */}
Expand Down

0 comments on commit 2135105

Please sign in to comment.