Lock Open 2
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 lock-open-2 --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 LockOpen2Icon({ disableHover, className }: Props) {
const classes = [
"ai-lock-open-2-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-lock-open-2-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-lock-open-2-icon * {
transform-box: fill-box;
}
.ai-lock-open-2-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-lock-open-2-icon .shackle {
transform-box: view-box;
transform-origin: 8.5px 3px;
}
.ai-lock-open-2-icon:not(.no-hover):hover .shackle {
animation: ai-lock-open-2-flip 700ms ease-in-out;
}
@keyframes ai-lock-open-2-flip {
0%, 100% { transform: scaleX(1); }
25% { transform: scaleX(0); }
50% { transform: scaleX(-1); }
75% { transform: scaleX(0); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="body" d="M1 6.00001H10C10.5523 6.00001 11 6.44772 11 7.00001V13C11 13.5523 10.5523 14 10 14H1C0.447715 14 1.20798e-08 13.5523 0 13V7.00001C1.12745e-06 6.44772 0.447716 6.00001 1 6.00001ZM1 13H10V7.00001H1V13Z" fill="currentColor"/>
<path className="shackle" d="M11.501 7.62939e-06C12.6739 7.62939e-06 13.6392 0.389221 14.2627 1.19337L14.3535 1.31641C14.7916 1.94395 14.9999 2.74153 15 3.63282H14C13.9999 2.94151 13.8493 2.38801 13.5898 1.97462L13.4727 1.80665C13.0843 1.3058 12.4481 1.00001 11.501 1.00001C10.643 1.0001 10.0366 1.26538 9.6416 1.68653C9.24224 2.11237 9.00005 2.7604 9 3.63575V6.00001H8V3.63575C8.00005 2.5812 8.29349 1.66147 8.91211 1.00196C9.53507 0.337846 10.4292 9.70384e-05 11.501 7.62939e-06Z" fill="currentColor"/>
</svg>
</>
);
}