2.1.4 • Published 1 year ago

swipe-animate v2.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

✨ SWIPE-ANIMATE

This is a typescript project created by Abolade Greatness and VickyJay, helping you animate text in a swipe up animation just like the one below;

stacked

🔧 Installation

npm i swipe-animate

I'll provide support for other packages with time. Happy to collaborate with anyone. 🤝

😍 Features

  • Easy to set up for real, you can make it work in less than 10sec!
  • Super easy to customize
  • Set custom duration with choice
  • Create custom array of words
  • Typescript supported

The gist

  • JSX
import React from "react";
import { Swipe } from "swipe-animate";

const page = () => {
	const arrayOfWords: string[] = ["Awesome!", "Genius!", "Intelligent!", "Prodigy!", "Him!", "Amazing!", "Terrific!", "Broke!"];

	return (
		<div>
			{" "}
			<Swipe
				words={arrayOfWords}
				intervalDuration={4000}
				textSize="lg:text-5xl text-3xl"
				textColors={["green-400", "blue-500", "red-600"]}
			/>
		</div>
	);
};

export default page;
  • TSX
"use client";
import React from "react";
import { Swipe } from "swipe-animate";

const page = () => {
	const arrayOfWords: string[] = ["Awesome!", "Genius!", "Intelligent!", "Prodigy!", "Him!", "Amazing!", "Terrific!", "Broke!"];

	return (
		<div>
			{" "}
			<Swipe
				words={arrayOfWords}
				intervalDuration={4000}
				textSize="lg:text-5xl text-3xl"
				textColors={["green-400", "blue-500", "red-600"]}
			/>
		</div>
	);
};

export default page;

🚀 Demo

https://korahq.com/#move-money || https://simple-text-animation-gold.vercel.app/

🤝 Contribute

Show your ❤️ and support by giving a ⭐. Any suggestions are welcome! Take a look at the contributing guide.

You can also find me on twitter and Linkedin. My pseudo is thegrtnx.

🤐 License

Licensed under MIT

2.1.1

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.0

1 year ago

1.4.3

1 year ago

1.3.4

1 year ago

1.4.2

1 year ago

1.5.0

1 year ago

1.3.2

1 year ago

1.3.9

1 year ago

1.2.4

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago