← Back

Font Italic

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

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

.ai-font-italic-icon * {
  transform-box: fill-box;
}

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

.ai-font-italic-icon .letter {
  transform-box: view-box;
  transform-origin: 7.5px 7.5px;
}

.ai-font-italic-icon:not(.no-hover):hover .letter {
  animation: ai-font-italic-lean 700ms ease-in-out;
}

@keyframes ai-font-italic-lean {
  0%, 100% { transform: skewX(0); }
  50% { transform: skewX(-12deg); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="letter" d="M10.6252 3.05018C10.8736 3.05028 11.0754 3.25191 11.0754 3.50037C11.0753 3.74875 10.8736 3.95047 10.6252 3.95057H9.00604L7.23065 11.0502H8.87518C9.12362 11.0503 9.32538 11.2519 9.32538 11.5004C9.32521 11.7487 9.12352 11.9495 8.87518 11.9496H4.37518C4.12676 11.9496 3.92516 11.7488 3.92499 11.5004C3.92499 11.2518 4.12665 11.0502 4.37518 11.0502H5.99432L7.76971 3.95057H6.12518C5.87672 3.95057 5.67509 3.74881 5.67499 3.50037C5.67499 3.25185 5.87665 3.05018 6.12518 3.05018H10.6252Z" fill="currentColor"/>
      </svg>
    </>
  );
}