Skip to content

thegrtnx/swipe-animate

Repository files navigation

✨ 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

About

Text Swipe Animation - a text animation library just like https://korahq.com/#move-money landing page.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published