Angle
Install
npm install @svg-animated-icons/reactCLI
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| Flag | Description |
|---|---|
--dest <dir> | Destination directory (default: components/animated-icons) |
Or copy the component with the CLI
CLI
npx @svg-animated-icons/cli add angle --reactCode
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 AngleIcon({ disableHover, className }: Props) {
const classes = [
"ai-angle-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-angle-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-angle-icon * {
transform-box: fill-box;
transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease;
}
.ai-angle-icon .arm {
transform-box: view-box;
transform-origin: 2.1px 12.3px;
}
.ai-angle-icon .dots {
transform-origin: center;
}
.ai-angle-icon .dot {
transform-origin: center;
}
.ai-angle-icon .base {
transform-origin: left center;
}
.ai-angle-icon:not(.no-hover):hover .arm {
animation: ai-angle-arm 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-angle-icon:not(.no-hover):hover .dots {
animation: ai-angle-dots 700ms ease;
}
.ai-angle-icon:not(.no-hover):hover .dot-1 {
animation: ai-angle-dot-1 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-angle-icon:not(.no-hover):hover .dot-2 {
animation: ai-angle-dot-2 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-angle-icon:not(.no-hover):hover .dot-3 {
animation: ai-angle-dot-3 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-angle-icon:not(.no-hover):hover .dot-4 {
animation: ai-angle-dot-4 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-angle-icon:not(.no-hover):hover .base {
animation: ai-angle-base 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-angle-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
@keyframes ai-angle-arm {
0%,
100% {
transform: rotate(0deg);
}
52% {
transform: rotate(49deg);
}
}
@keyframes ai-angle-dots {
0%,
100% {
opacity: 1;
}
52% {
opacity: 0.78;
}
}
@keyframes ai-angle-dot-1 {
0%,
100% {
transform: none;
}
52% {
transform: translate(-2.55px, 7.17px) scale(0.45);
}
}
@keyframes ai-angle-dot-2 {
0%,
100% {
transform: none;
}
52% {
transform: translate(-2.1px, 5.27px) scale(0.42);
}
}
@keyframes ai-angle-dot-3 {
0%,
100% {
transform: none;
}
52% {
transform: translate(-1.65px, 3.37px) scale(0.38);
}
}
@keyframes ai-angle-dot-4 {
0%,
100% {
transform: none;
}
52% {
transform: translate(-1.25px, 1.45px) scale(0.34);
}
}
@keyframes ai-angle-base {
0%,
100% {
transform: scaleX(1);
}
52% {
transform: scaleX(1.05);
}
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="base" d="M2.1 12.3H13.5" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
<path className="arm" d="M2.1 12.3L8.75 3" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
<g className="dots">
<circle className="dot dot-1" cx="9.75" cy="4.45" r="0.55" fill="currentColor"/>
<circle className="dot dot-2" cx="10.75" cy="6.45" r="0.5" fill="currentColor"/>
<circle className="dot dot-3" cx="11.75" cy="8.45" r="0.45" fill="currentColor"/>
<circle className="dot dot-4" cx="12.75" cy="10.45" r="0.4" fill="currentColor"/>
</g>
</svg>
</>
);
}