Blending Mode
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 blending-mode --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 BlendingModeIcon({ disableHover, className }: Props) {
const classes = [
"ai-blending-mode-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-blending-mode-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-blending-mode-icon * {
transform-box: fill-box;
}
.ai-blending-mode-icon .highlight {
transform-origin: center;
}
.ai-blending-mode-icon:not(.no-hover):hover .highlight {
animation: ai-blending-mode-glide 700ms ease-in-out;
}
.ai-blending-mode-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
@keyframes ai-blending-mode-glide {
0%,
100% {
transform: translateX(0) rotate(0deg);
}
50% {
transform: translateX(200%) rotate(-90deg);
}
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="drop" d="M7.5 1.5C10.5 4.25 12 6.5 12 9C12 11.49 9.99 13.5 7.5 13.5C5.01 13.5 3 11.49 3 9C3 6.5 4.5 4.25 7.5 1.5Z" stroke="currentColor" strokeWidth="1" strokeLinejoin="round"/>
<path className="highlight" d="M5 9.5C5 10.5 5.6 11.5 6.6 11.8" stroke="currentColor" strokeWidth="1" strokeLinecap="round" opacity="0.75"/>
</svg>
</>
);
}