Simple scroll based text reveal animation library.

Overview

Simple scroll based text reveal animation library.

maintained - yes contributions - welcome Made with JavaScript

⛰️
DEMO


Getting Started

Using packge manager

NPM

Install textify using npm:

npm install textify.js

yarn

Install textify using yarn

yarn add textify.js

Using CDN:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Textify.min.js"></script>

Usage

Import Textify.js:

import Textify from "textify.js";

Add data-textify attribute to your paragraph or an element that contain text.

<p data-textify>Some cool text.😎😎</p>

Initialize textify to see magic.

new Textify()

By default textify use default configurations for text animations. You can pass an configuration object during initialization to tweak it.

Configuration options

Option Default value Description
duration 1450 Duration of text animation in ms
delay 100 Delay between animation of two lines. Value between 0 to 500 ms
fade false For fade animation.
top false Text reveal direction. Default is bottom to top
once true Whether animation should happen only once - while scrolling down
rotation 0 Add rotation on word in animation
scale 1 Add scaling on word in animation
easing Default Set easing function for animation
fadeEasing Default fade animation ease value
selector data-textify css selector for selecting elements from DOM

API

Textify object exposed following methods.

  • show - Reveal animation.
  • hide - Hide animation.
  • onRefresh - Re-calulate all texts position and offset (call on DOM changes and resize event)

Example:

const textObj = new Textify();

document.getElementById("btn").addEventListener("click", () => {
    textObj.show();
})

document.getElementById("btn").addEventListener("click", () => {
    textObj.show();
})

window.addEventListener("load", () => {
    textObj.onRefresh();
});

Easing functions

  • easeInOut
  • easeOut
  • easeIn
  • ease
  • sharp
  • linear
  • back
  • backIn
  • backOut
  • backInOut
  • elasticIn
  • elasticOut
  • elasticInOut
  • bounceIn
  • bounceOut
  • bounceInOut
  • circIn
  • circOut
  • circInOut

License

Released under MIT by @MAGGIx1404.

You might also like...

A fullscreen scroll-based slideshow with a content view powered by GreenSock's Observer plugin.

A fullscreen scroll-based slideshow with a content view powered by GreenSock's Observer plugin.

Fullscreen Scrolling Slideshow A fullscreen scroll-based slideshow with a content view powered by GreenSock's Observer plugin. Article on Codrops Demo

Jan 3, 2023

Canvas-based JavaScript UI element implementing touch, keyboard, mouse and scroll wheel support.

Canvas-based JavaScript UI element implementing touch, keyboard, mouse and scroll wheel support.

pure-knob Initially a (circular) knob / dial control with mouse, wheel, touch and keyboard support, implemented in pure JavaScript. In addition, this

Nov 4, 2022

A simple but powerful tweening / animation library for Javascript. Part of the CreateJS suite of libraries.

TweenJS TweenJS is a simple tweening library for use in Javascript. It was developed to integrate well with the EaselJS library, but is not dependent

Jan 3, 2023

A Simple jQuery Plugin for Animating Scroll

A Simple jQuery Plugin for Animating Scroll

AnimateScroll A Simple jQuery Plugin for Animating the Scroll Demo can be seen at http://plugins.compzets.com/animatescroll What is it exactly? Animat

Jul 21, 2022

A simple jQuery extension to make any HTML element sticky on scroll.

jquery.sticky.js A simple jQuery extension to make any HTML element sticky on scroll. Installation Just download the script and include it in your HTM

Aug 22, 2022

Animate on scroll library

❗ ❗ ❗ This is README for aos@next ❗ ❗ ❗ For last stable release (v2) go here 🚀 Demo 🌟 Codepen Examples Different built-in animations With anchor set

Jan 2, 2023

A javascript library to animate elements on scroll page events

ScrollJS by Sam Sirianni ScrollJS is a library written in Javascript. With ScrollJS you can animate elements on scroll events. Visit the ScrollJS webs

Mar 21, 2021

Javascript library for switching fixed elements on scroll through sections. Like Midnight.js, but without jQuery

Library for Switching Fixed Elements on Scroll Sometimes designers create complex logic and fix parts of the interface. Also they colour page sections

Sep 19, 2022

Lightweight and easy to use vanilla js library to add css animations to elements on scroll.

Scrollrisen Trigger css animations on scroll as elements enter the viewport. Zero dependencies, lightweight and easy to use and customize Installation

Oct 13, 2022
Comments
  • console.log

    console.log

    Hey @MAGGIx1404 thank you for this Package!

    is there any reason why you console.log this.transformPrefix? Its located in /src/Animations/Text.js.

    And could you maybe remove it?

    Best, Julian

    opened by julianlaibach 2
  • Bump loader-utils from 2.0.3 to 2.0.4

    Bump loader-utils from 2.0.3 to 2.0.4

    Bumps loader-utils from 2.0.3 to 2.0.4.

    Release notes

    Sourced from loader-utils's releases.

    v2.0.4

    2.0.4 (2022-11-11)

    Bug Fixes

    Changelog

    Sourced from loader-utils's changelog.

    2.0.4 (2022-11-11)

    Bug Fixes

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump loader-utils from 2.0.2 to 2.0.3

    Bump loader-utils from 2.0.2 to 2.0.3

    Bumps loader-utils from 2.0.2 to 2.0.3.

    Release notes

    Sourced from loader-utils's releases.

    v2.0.3

    2.0.3 (2022-10-20)

    Bug Fixes

    • security: prototype pollution exploit (#217) (a93cf6f)
    Changelog

    Sourced from loader-utils's changelog.

    2.0.3 (2022-10-20)

    Bug Fixes

    • security: prototype pollution exploit (#217) (a93cf6f)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • merge (#16)

    merge (#16)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • backup (#7) (#8)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • Add license 1 (#10)

    • backup (#7)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • merge branches (#9)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • backup (#7) (#8)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • Create SECURITY.md

    • Test (#12)

    • add remove examples

    • merge (#11)

    • add remove examples (#5)

    • backup (#7) (#8)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • Add license 1 (#10)

    • backup (#7)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • merge branches (#9)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • backup (#7) (#8)

    • basic setup

    • basic setup

    • add dependencies

    • add remove examples (#5)

    • Test (#13)

    • add remove examples

    • remove old examples

    • Test (#14)

    • add remove examples

    • remove old examples

    • add custom eases

    • add custom eases

    • Test (#15)

    • add remove examples

    • remove old examples

    • add custom eases

    • add custom eases

    • add custom eases

    • add

    • 1.1.0

    opened by MAGGIx1404 0
Releases(v1.2.2)
  • v1.1.0(Jul 18, 2022)

    What's Changed

    • add license by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/1
    • basic setup by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/2
    • add dependencies by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/3
    • Test by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/5
    • backup (#7) by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/8
    • Add license 1 by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/10
    • Test by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/12
    • Test by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/13
    • Test by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/14
    • Test by @MAGGIx1404 in https://github.com/MAGGIx1404/Textify.js/pull/15

    Full Changelog: https://github.com/MAGGIx1404/Textify.js/commits/v1.1.0

    Source code(tar.gz)
    Source code(zip)
Owner
Jeet
Hi, I am an 18-year-old student and Creative + Frontend Developer from MOON.
Jeet
Quick and easy spring animation. Works with other animation libraries (gsap, animejs, framer motion, motion one, @okikio/animate, etc...) or the Web Animation API (WAAPI).

spring-easing NPM | Github | Docs | Licence Quick and easy spring animations. Works with other animation libraries (gsap, animejs, @okikio/animate, mo

Okiki Ojo 34 Dec 14, 2022
Animation library build on top of web animation API (WAAPI)

unanime.js Javascript animation library build on top of web animation API (WAAPI). Learn more about WAAPI: Web animation API Documentation Blog Daniel

Clément Laval 3 Jun 21, 2022
Rainbow Table attack to break zkcrush.xyz and reveal your crush.

ZK-Crush-Break Rainbow Table attack to break zkcrush.xyz and reveal your crush. Background Amir released a project called zkcrush.xyz that allowed a u

Verumlotus 4 Jul 1, 2022
Chrome Extension To Reveal Observable Notebooks As Quarto QMD {ojs} Blocks & provide downloads of FileAttachments and zipped Quarto project

reveal-qmd Chrome Extension To Reveal Observable Notebooks As Quarto QMD {ojs} Blocks Usage: git clone [email protected]:hrbrmstr/reveal-qmd In Chrome (e

boB Rudis 20 Nov 29, 2022
Smooth scroll animation - vanilla JavaScript

Smooth Scroll Animation Using Vanilla JavaScript Provides smooth scroll functionality on clicking buttons with different eeasing properties. The "smoo

Bhagabati Prasad 4 Aug 14, 2022
I made countdown birthday and fireworks animation using HTML Canvas, CSS, JS. The fireworks animation gonna come out once the countdown is finished or in other words, "Birthday Time".

Countdown-Birthday-Fireworks-Animation I made countdown birthday and fireworks animation using HTML Canvas, CSS, JS. The fireworks animation gonna com

Mahardika Bayu S.B 19 Dec 31, 2022
A JavaScript animation plugin for menus. It creates a div that moves when you mouse over an element, giving it an elastic animation.

Lava-Lamp Description: A JavaScript animation plugin for menus. It creates a div that moves when you mouse over an element, giving it an elastic anima

Richard Hung 38 Jun 4, 2022
Add animation to your HTML5 pages, items and on text, using this JS Framework

animate.js is a tiny JavaScript library that provides a convenient way to apply Animate.css powered CSS animations to DOM elements without writing any

Rohit Chouhan 9 Oct 25, 2022
A lightweight JavaScript library that renders text in a brilliant style by displaying strings of random characters before the actual text.

cryptoWriter.js A lightweight javascript library which creates brilliant text animation by rendering strings of random characters before the actual te

Keshav Bajaj 2 Sep 13, 2022
A small jQuery plugin for rendering scroll-based HTML animations

Storyline Build beautiful landing pages that change as the user scrolls up or down. Project created in 2013 and ported to GitHub in 2021. Demo Just vi

Mark Jivko 3 May 30, 2022