1.2.1 • Published 5 months ago
signature-animation v1.2.1
Signature Animation
A React component for animating handwriting. It leverages SVG paths to create smooth stroke animations, making it ideal for signature effects, handwritten-style logos, and creative UI designs.
Features
- Animate handwritten signatures or letters using SVG.
- Lightweight and easy to integrate into any React project.
Installation
npm install signature-animation
or using yarn:
yarn add signature-animation
Usage
import React from "react";
import SignatureAnimation from "signature-animation";
function App() {
return (
<div>
<h1>Signature Animation Demo</h1>
<SignatureAnimation duration={1} delay={0.3}>
Make AY the sun shine
</SignatureAnimation>
</div>
);
}
export default App;
Props
Prop | Type | Default | Description |
---|---|---|---|
children | string | "" | The text to animate as handwriting. |
className | string | "" | Custom class for styling. (upcoming) |
duration | number | 1 | Duration of the animation in seconds. |
delay | number | 0 | Delay between letters of the animation in seconds. |
git clone https://github.com/Ayo-Osota/signature-animation.git
cd signature-animation
npm install
npm run build
License
This project is licensed under the MIT License.
Acknowledgement
This code was inspired by a project on CodePen.
1.2.1
5 months ago
1.2.0
5 months ago
1.1.5
5 months ago
1.1.4
5 months ago
1.1.3
5 months ago
1.0.14
5 months ago
1.0.13
5 months ago
1.0.12
5 months ago
1.0.11
5 months ago
1.0.10
5 months ago
1.0.9
5 months ago
1.0.8
5 months ago
1.0.7
5 months ago
1.0.6
5 months ago
1.0.5
5 months ago
1.0.4
5 months ago
1.0.3
5 months ago
1.0.2
5 months ago
1.0.1
5 months ago
1.0.0
5 months ago