Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

3.0 KB
Raw Blame
"use client";

import { motion, type Variants } from "motion/react";

const draw: Variants = {
  hidden: { pathLength: 0, opacity: 0 },
  visible: {
    pathLength: 1,
    opacity: 1,
    transition: {
      pathLength: {
        type: "spring",
        duration: 3,
        bounce: 0,
        delay: 0.5,
      },
      opacity: {
        duration: 0.1,
        delay: 0.5,
      },
    },
  },
};

export const AnimatedSignature = () => {
  return (
    <motion.svg
      width="299"
      height="214"
      viewBox="0 0 299 214"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      initial="hidden"
      whileInView="visible"
      viewport={{ once: true, amount: 0.6 }}
      className="size-44"
      aria-label="EasyInvoicePDF.com Founder's Signature - Vlad Sazonau"
    >
      <title>Vlad Sazonau - EasyInvoicePDF.com Founder</title>
      <motion.path
        className="stroke-slate-950 stroke-[10px]"
        d="M30.8711 134.674C30.557 126.631 29.3843 104.439 27.3703 98.6748C26.8048 97.0563 25.3706 96.1987 23.7171 95.7276C21.745 95.1657 19.4102 95.9721 16.849 97.4791C9.11744 102.029 6.10375 115.908 3.92237 126.166C2.93783 130.796 4.46078 138.401 6.69591 149.394C9.40063 162.697 14.4364 172.582 18.8575 180.53C25.5991 192.649 32.2055 200.729 35.0535 203.079C40.1566 207.29 48.5304 210.79 53.0523 210.37C60.323 209.694 61.6192 198.662 64.2349 185.375C66.0503 176.154 67.2524 161.62 68.0766 153.208C68.9009 144.797 68.9009 142.877 71.912 149.979C74.9231 157.081 80.9454 173.263 84.714 176.819C90.4449 182.227 91.1882 156.307 93.6673 154.863C97.1732 152.821 101.104 169.297 104.867 177.107C108.629 184.918 111.046 188.978 113.222 187.78C115.398 186.583 117.261 180.005 118.644 173.859C120.028 167.714 120.875 162.2 121.576 147.445C122.276 132.689 122.803 108.86 121.75 89.2996C120.697 69.7392 118.048 55.1698 115.049 43.1627C109.736 21.891 105.174 11.9169 105.252 11.4996C105.776 8.67104 109.755 19.4465 120.885 41.7198C130.263 60.488 144.615 95.6578 153.965 120.166C163.316 144.674 166.565 157.773 167.827 164.161C169.09 170.549 168.267 169.829 166.873 167.907C165.48 165.985 163.541 162.883 160.204 155.99C156.868 149.098 152.192 138.509 147.678 124.784C143.165 111.059 138.955 94.5187 138.273 81.161C137.592 67.8033 140.567 58.1298 143.405 52.4003C146.242 46.6708 148.852 45.1783 151.435 44.2322C156.34 42.4356 161.017 42.8945 164.825 44.0479C168.734 45.232 171.412 49.6643 174.183 55.3846C178.101 63.4753 178.502 74.6593 178.944 85.0095C179.321 93.8418 176.445 101.846 174.34 108.079C173.579 110.332 174.899 111.108 176.631 111.814C188.174 116.521 203.621 123.371 208.404 127.513C214.581 132.861 209.193 146.808 207.034 152.306C206.573 153.48 205.586 153.976 204.759 154.393C203.932 154.81 203.066 155.015 201.913 154.805C200.759 154.595 199.346 153.963 197.951 152.753C194.899 150.106 193.102 140.466 195.325 122.041C196.683 110.789 205.002 96.9394 211.138 86.5148C217.274 76.0903 222.636 69.8341 234.652 58.6592C246.667 47.4844 265.174 31.5804 276.504 21.4438C287.834 11.3073 291.426 7.42016 295.749 3.09814"
        variants={draw}
      />
    </motion.svg>
  );
};