Lock Open 1
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-1 --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 LockOpen1Icon({ disableHover, className }: Props) {
const classes = [
"ai-lock-open-1-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-lock-open-1-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-lock-open-1-icon * {
transform-box: fill-box;
}
.ai-lock-open-1-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-lock-open-1-icon .shackle {
transform-box: view-box;
transform-origin: 4.5px 6px;
}
.ai-lock-open-1-icon:not(.no-hover):hover .shackle {
animation: ai-lock-open-1-close-open 700ms ease-in-out;
}
@keyframes ai-lock-open-1-close-open {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(-30deg); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="body" d="M3 6H12C12.5523 6 13 6.44772 13 7V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V7C2 6.44772 2.44772 6 3 6ZM3 13H12V7H3V13Z" fill="currentColor"/>
<path className="shackle" d="M7.49902 0C8.57082 8.94091e-05 9.46493 0.337839 10.0879 1.00195C10.7065 1.66147 10.9999 2.58119 11 3.63574V6H10V3.63574C9.99995 2.76039 9.75776 2.11236 9.3584 1.68652C8.96337 1.26538 8.35703 1.00009 7.49902 1C6.61111 1 5.99677 1.26857 5.60352 1.71484L5.52734 1.80664C5.1967 2.23329 5.00007 2.84315 5 3.63281H4C4.00007 2.68216 4.2373 1.83821 4.7373 1.19336L4.8584 1.04785C5.48245 0.342377 6.39938 0 7.49902 0Z" fill="currentColor"/>
</svg>
</>
);
}