All Projects → jschr → Textillate

jschr / Textillate

Licence: mit
A jquery plugin for CSS3 text animations.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Textillate

Morphist
A simple, high-performance and cross-browser jQuery slider / slideshow / carousel plugin for child objects powered by Animate.css.
Stars: ✭ 60 (-98.33%)
Mutual labels:  jquery, css-animations
Morphext
A simple, high-performance and cross-browser jQuery rotating / carousel plugin for text phrases powered by Animate.css.
Stars: ✭ 384 (-89.3%)
Mutual labels:  jquery, css-animations
Slide And Swipe Menu
⚡️ A sliding swipe menu that works with touchSwipe library.
Stars: ✭ 135 (-96.24%)
Mutual labels:  jquery, css-animations
Jcslider
🏂 A responsive slider jQuery plugin with CSS animations
Stars: ✭ 52 (-98.55%)
Mutual labels:  jquery, css-animations
Texttailor.js
jQuery plugin, tailor made text to fill the height of the parent element or ellipse it if it doesn't fit
Stars: ✭ 291 (-91.89%)
Mutual labels:  text, jquery
Datetimepicker
jQuery Plugin Date and Time Picker
Stars: ✭ 3,402 (-5.24%)
Mutual labels:  jquery
Artificial Adversary
🗣️ Tool to generate adversarial text examples and test machine learning models against them
Stars: ✭ 348 (-90.31%)
Mutual labels:  text
Jquery Fullscreen Plugin
This jQuery plugin provides a simple to use mechanism to control the new fullscreen mode of modern browsers
Stars: ✭ 327 (-90.89%)
Mutual labels:  jquery
Native Css
Convert pure CSS to React Style or javascript literal objects.
Stars: ✭ 322 (-91.03%)
Mutual labels:  css-animations
Android Text
Migrated:
Stars: ✭ 358 (-90.03%)
Mutual labels:  text
Datetimepicker
Responsive jQuery DateTime Picker plugin for Web & Mobile
Stars: ✭ 356 (-90.08%)
Mutual labels:  jquery
Bootstrap Iconpicker
A simple icon picker
Stars: ✭ 344 (-90.42%)
Mutual labels:  jquery
Wpaint
jQuery Paint Plugin
Stars: ✭ 332 (-90.75%)
Mutual labels:  jquery
Grid Editor
Visual javascript editor for the bootstrap 4 grid system, written as a jQuery plugin.
Stars: ✭ 348 (-90.31%)
Mutual labels:  jquery
Wondercms
WonderCMS - fast and small flat file CMS (5 files)
Stars: ✭ 330 (-90.81%)
Mutual labels:  jquery
Protip
A new generation jQuery Tooltip plugin
Stars: ✭ 357 (-90.06%)
Mutual labels:  jquery
Decoro
Android library designed for automatic formatting of text input by custom rules
Stars: ✭ 325 (-90.95%)
Mutual labels:  text
React Mt Svg Lines
A React.js wrapper component to animate the line stroke in SVGs
Stars: ✭ 344 (-90.42%)
Mutual labels:  css-animations
Sms Ssm
🏫 🎓 一个基于 SSM 的简单学生管理系统 : 项目概述全面,代码注释详细,逻辑结构清晰,并提供待优化方案,非常具有参考与学习价值哟 !
Stars: ✭ 351 (-90.22%)
Mutual labels:  jquery
Zoomove
🔍 🎆 Enlarges the image with the mouse hover and move
Stars: ✭ 339 (-90.56%)
Mutual labels:  jquery

Textillate.js v0.4.1 JS.ORG

See a live demo here.

Textillate.js combines some awesome libraries to provide an easy-to-use plugin for applying CSS3 animations to any text.

Usage

Let's start with the basic markup:

<h1 class="tlt">My Title</h1>

And your JavaScript should look like this:

$(function () {
	$('.tlt').textillate();
})

This will animate using the default options. To change the defaults, you can either use the html data api:

<h1 class="tlt" data-in-effect="rollIn">Title</h1>

or pass in options on initialization (see full list of options below):

$('.tlt').textillate({ in: { effect: 'rollIn' } });

You can also tell textillate.js to animate a list with the following markup:

<h1 class="tlt">
	<ul class="texts">
		<li data-out-effect="fadeOut" data-out-shuffle="true">Some Title</li>
		<li data-in-effect="fadeIn">Another Title</li>
	</ul>
</h1>
$('.tlt').textillate();

Notice that you can control the animation parameters on each text (<li>) using the data api.

Dependencies

To start using textillate.js, you will need the following:

Options

$('.tlt').textillate({
  // the default selector to use when detecting multiple texts to animate
  selector: '.texts',

  // enable looping
  loop: false,

  // sets the minimum display time for each text before it is replaced
  minDisplayTime: 2000,

  // sets the initial delay before starting the animation
  // (note that depending on the in effect you may need to manually apply
  // visibility: hidden to the element before running this plugin)
  initialDelay: 0,

  // set whether or not to automatically start animating
  autoStart: true,

  // custom set of 'in' effects. This effects whether or not the
  // character is shown/hidden before or after an animation
  inEffects: [],

  // custom set of 'out' effects
  outEffects: [ 'hinge' ],

  // in animation settings
  in: {
  	// set the effect name
    effect: 'fadeInLeftBig',

    // set the delay factor applied to each consecutive character
    delayScale: 1.5,

    // set the delay between each character
    delay: 50,

    // set to true to animate all the characters at the same time
    sync: false,

    // randomize the character sequence
    // (note that shuffle doesn't make sense with sync = true)
    shuffle: false,

    // reverse the character sequence
    // (note that reverse doesn't make sense with sync = true)
    reverse: false,

    // callback that executes once the animation has finished
    callback: function () {}
  },

  // out animation settings.
  out: {
    effect: 'hinge',
    delayScale: 1.5,
    delay: 50,
    sync: false,
    shuffle: false,
    reverse: false,
    callback: function () {}
  },

  // callback that executes once textillate has finished
  callback: function () {},

  // set the type of token to animate (available types: 'char' and 'word')
  type: 'char'
});

Events

Textillate triggers the following events:

  • start.tlt - triggered when textillate starts
  • inAnimationBegin.tlt - triggered when the in animation begins
  • inAnimationEnd.tlt - triggered when the in animation ends
  • outAnimationBegin.tlt - triggered when the out animation begins
  • outAnimationEnd.tlt - triggered when the out animation ends
  • end.tlt - triggered when textillate ends
$('.tlt').on('inAnimationBegin.tlt', function () {
  // do something
});

Methods

  • $element.textillate('start') - Manually start/restart textillate
  • $element.textillate('stop') - Manually pause/stop textillate
  • $element.textillate('in') - Trigger the current text's in animation
  • $element.textillate('out') - Trigger the current text's out animation

Code Samples

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].