← Back

Countdown Timer

Install

npm install @svg-animated-icons/react

CLI

Copy an icon component straight into your project — shadcn-style. Replace {icon} with an icon name like arrow-left.

terminal
npx @svg-animated-icons/cli add {icon} --react
FlagDescription
--dest <dir>Destination directory (default: components/animated-icons)

Or copy the component with the CLI

CLI
npx @svg-animated-icons/cli add countdown-timer --react

Code

React
// Generated by @svg-animated-icons/cli
// You own this file — edit it freely.

import React from "react";

type Props = {
  disableHover?: boolean;
  className?: string;
};

export function CountdownTimerIcon({ disableHover, className }: Props) {
  const classes = [
    "ai-countdown-timer-icon",
    disableHover ? "no-hover" : "",
    className ?? "",
  ]
    .filter(Boolean)
    .join(" ");

  return (
    <>
      <style>{`
.ai-countdown-timer-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  cursor: pointer;
  overflow: visible;
}

.ai-countdown-timer-icon * {
  transform-box: fill-box;
}

.ai-countdown-timer-icon.no-hover * {
  transform: none;
  opacity: 1;
  animation: none;
}

.ai-countdown-timer-icon .outer {
  transform-box: view-box;
  transform-origin: 7.5px 7.5px;
}

.ai-countdown-timer-icon:not(.no-hover):hover .outer {
  animation: ai-countdown-timer-spin 700ms ease-in-out;
}

@keyframes ai-countdown-timer-spin {
  from { transform: rotate(0); }
  to { transform: rotate(-360deg); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="outer" d="M7.5 0.849976C11.5626 0.850176 14.1504 4.18587 14.1504 7.50037C14.1502 10.8147 11.5624 14.1496 7.5 14.1498C5.55651 14.1497 3.93833 13.3806 2.78613 12.2084L2.56055 11.9681C2.12341 11.4767 1.76418 10.9246 1.48926 10.3373L1.3584 10.0404C1.25353 9.78512 1.3756 9.49311 1.63086 9.38806C1.8541 9.29648 2.10559 9.37801 2.23535 9.57068L2.2832 9.66052C2.5289 10.2574 2.87436 10.8159 3.30762 11.3031L3.49902 11.5072C4.47075 12.4959 5.83522 13.1497 7.5 13.1498C10.9398 13.1496 13.1502 10.3355 13.1504 7.50037C13.1504 4.66507 10.94 1.85018 7.5 1.84998C4.88974 1.85016 3.52024 3.66593 2.87891 4.79236L2.76758 5.00037H4.5C4.77614 5.00037 5 5.22422 5 5.50037C4.99979 5.77633 4.77601 6.00037 4.5 6.00037H1.5C1.22399 6.00037 1.00021 5.77633 1 5.50037V2.50037C1 2.22422 1.22386 2.00037 1.5 2.00037C1.77614 2.00037 2 2.22422 2 2.50037V4.31189L2.00098 4.31091C2.70613 3.06863 4.3361 0.850158 7.5 0.849976Z" fill="currentColor"/>
        <path className="inner" d="M8 10.0004H7V5.00037H8V10.0004Z" fill="currentColor"/>
      </svg>
    </>
  );
}