← Back

Space Evenly Horizontally

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 space-evenly-horizontally --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 SpaceEvenlyHorizontallyIcon({ disableHover, className }: Props) {
  const classes = [
    "ai-space-evenly-horizontally-icon",
    disableHover ? "no-hover" : "",
    className ?? "",
  ]
    .filter(Boolean)
    .join(" ");

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

.ai-space-evenly-horizontally-icon * {
  transform-box: fill-box;
}

.ai-space-evenly-horizontally-icon.no-hover * {
  transform: none;
  opacity: 1;
  animation: none;
}

.ai-space-evenly-horizontally-icon .block-1,
.ai-space-evenly-horizontally-icon .block-2 {
  transform-origin: center;
}

.ai-space-evenly-horizontally-icon:not(.no-hover):hover .block-1 {
  animation: ai-space-evenly-horizontally-pulse 700ms ease-in-out;
}

.ai-space-evenly-horizontally-icon:not(.no-hover):hover .block-2 {
  animation: ai-space-evenly-horizontally-pulse 700ms ease-in-out 150ms;
}

@keyframes ai-space-evenly-horizontally-pulse {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.2); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="block-left" d="M0.999991 13.4999C0.999991 13.776 0.776135 13.9999 0.499995 13.9999C0.223855 13.9999 -5.58458e-07 13.776 -5.46388e-07 13.4999L-2.18555e-08 1.49999C1.89755e-06 1.22385 0.223857 0.999991 0.499996 0.999991C0.776135 0.999991 0.99999 1.22385 0.999992 1.49999L0.999991 13.4999Z" fill="currentColor"/>
        <path className="block-1" d="M6.99994 7.99993C6.99994 8.55221 6.55223 8.99993 5.99995 8.99993L2.99998 8.99993C2.4477 8.99993 1.99998 8.55221 1.99998 7.99993L1.99998 6.99994C1.99998 6.44766 2.4477 5.99995 2.99998 5.99995L5.99995 5.99995C6.55223 5.99995 6.99994 6.44766 6.99994 6.99994L6.99994 7.99993Z" fill="currentColor"/>
        <path className="block-2" d="M12.9999 7.99993C12.9999 8.55222 12.5522 8.99993 11.9999 8.99993L8.99993 8.99993C8.44765 8.99993 7.99993 8.55221 7.99993 7.99993L7.99993 6.99994C7.99993 6.44766 8.44765 5.99995 8.99993 5.99995L11.9999 5.99995C12.5522 5.99995 12.9999 6.44766 12.9999 6.99994L12.9999 7.99993Z" fill="currentColor"/>
        <path className="block-right" d="M14.9999 13.4999C14.9999 13.776 14.776 13.9999 14.4999 13.9999C14.2237 13.9999 13.9999 13.776 13.9999 13.4999L13.9999 1.49999C13.9999 1.22385 14.2237 0.999992 14.4999 0.999992C14.776 0.999992 14.9999 1.22385 14.9999 1.49999L14.9999 13.4999Z" fill="currentColor"/>
      </svg>
    </>
  );
}