下一代文本动画库。(正在添加 TypeScript 支持 …)
Textify.js is a animation engine for web typography animations, which are use to create smooth, creative or seamless animations of typography. Also it’s provide multiple animations types or custom animations on GSAP's power.
Install textify using npm:
npm install textify.jsInstall textify using yarn
yarn add textify.jsImport Textify.js and gsap:
import Textify from "textify.js";
import gsap from "gsap";Link Textify.min.css to document:
Add data-textify attribute to your paragraph or an element that contain text.
Some cool text.
Initialize textify to see magic (add gsap too).
import Textify from "textify.js";
import gsap from "gsap";
new Textify({}, gsap);By default textify use default configurations for text animations. You can pass an configuration object during initialization to tweak it.
…For, more information about configs, check Documentation
Check main documentation of Textify.js here:
Textify contains instance methods. these are used to control the animation. these methods are help to maintain animation stability. these methods are following:
animateIn - Reveal animation.animateOut - Hide animation.reset - Re-calulate all texts position and offset (call on DOM changes and resize event)Example:
const textObj = new Textify({}, gsap);
// reveal all animations of textObj
textObj.animateIn();
// hide all animations of textObj
textObj.animateOut();
// Re-calulate all texts position and offset
textObj.reset();
Released under MIT by @MAGGIx1404.
Enjoying textify.js? Please leave a short review on Openbase
暂无开放 Issues,或尚未同步最近议题。