← Back

Mixer Horizontal

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

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

.ai-mixer-horizontal-icon * {
  transform-box: fill-box;
}

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

.ai-mixer-horizontal-icon .knob-top,
.ai-mixer-horizontal-icon .knob-bottom,
.ai-mixer-horizontal-icon .cutout-top,
.ai-mixer-horizontal-icon .cutout-bottom {
  transform-box: view-box;
}

.ai-mixer-horizontal-icon:not(.no-hover):hover .knob-top,
.ai-mixer-horizontal-icon:not(.no-hover):hover .cutout-top {
  animation: ai-mixer-horizontal-slide-top 700ms ease-in-out;
}

.ai-mixer-horizontal-icon:not(.no-hover):hover .knob-bottom,
.ai-mixer-horizontal-icon:not(.no-hover):hover .cutout-bottom {
  animation: ai-mixer-horizontal-slide-bottom 700ms ease-in-out;
}

@keyframes ai-mixer-horizontal-slide-top {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@keyframes ai-mixer-horizontal-slide-bottom {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2px); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <defs>
          <mask id="ai-mixer-horizontal-mask">
            <rect width="15" height="15" fill="white"/>
            <circle className="cutout-top" cx="5.5" cy="4.5" r="1.5" fill="black"/>
            <circle className="cutout-bottom" cx="9.5" cy="10.5" r="1.5" fill="black"/>
          </mask>
        </defs>
        <g mask="url(#ai-mixer-horizontal-mask)">
          <path className="track-top" d="M1.5 4H13.5C13.7761 4 14 4.22386 14 4.5C14 4.77614 13.7761 5 13.5 5H1.5C1.22386 5 1 4.77614 1 4.5C1 4.22386 1.22386 4 1.5 4Z" fill="currentColor"/>
          <path className="track-bottom" d="M1.5 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10Z" fill="currentColor"/>
        </g>
        <path className="knob-top" fillRule="evenodd" d="M5.5 2C6.88071 2 8 3.11929 8 4.5C8 5.88071 6.88071 7 5.5 7C4.11929 7 3 5.88071 3 4.5C3 3.11929 4.11929 2 5.5 2ZM5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3Z" fill="currentColor"/>
        <path className="knob-bottom" fillRule="evenodd" d="M9.5 8C10.8807 8 12 9.11929 12 10.5C12 11.8807 10.8807 13 9.5 13C8.11929 13 7 11.8807 7 10.5C7 9.11929 8.11929 8 9.5 8ZM9.5 9C8.67157 9 8 9.67157 8 10.5C8 11.3284 8.67157 12 9.5 12C10.3284 12 11 11.3284 11 10.5C11 9.67157 10.3284 9 9.5 9Z" fill="currentColor"/>
      </svg>
    </>
  );
}