🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

splitFlap is a jQuery plugin that flips text messages with sequential characters based on CSS3 transform and perspective properties. Similar to the airport flight board animation effect.

Flip text-animation

Documentation

jquery-splitFlap

jQuery module to transform a div text into splitflap display (airport-like).

View the Demo →

How to use

<div class="my-splitflap">Hello World</div>
$('.my-spliflap').splitFlap();

Options

You can pass options to the function

// Default : $('.my-spliflap').splitFlap({ 	image:          'images/chars.png', 	imageSize:      '', 	charsMap:       'ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789.,!?#@()+-=', 	charWidth:      50, 	charHeight:     100, 	charSubstitute: ' ', 	speed:          3, 	speedVariation: 2, 	text:           '', 	textInit:       '', 	autoplay:       true, 	onComplete:		function(){} });

image

The path to the image used by the splitflap.

imageSize

If used on a non-natural size (ie for HDPI, etc...), the size of the image can be specified here, in CSS "background-position" format.

You will certainly need to change charsMap, charWidth and charHeight if you change this.

charsMap

The string represented in the image.

charWidth

The width of a character in the image, in pixels.

charHeight

The height of a character in the image, in pixels.

charSubstitute

The character used when the string contains a character not found in the charsMap.

speed

The speed of the rotation, in letter by seconds.

speedVariation

Random speed added to the fixed speed.

text

The destination text. If empty, the content of the element is used.

textInit

The initial string the animation begin with.

autoplay

If set to false, you'll need to start the animation manually (see below).

onComplete

Callback function when the aniamtion is complete.

Special options

If the string 'splitflap' is passed as options on an already existing Splitflaped div, the internal SplitFlap object is returned.

With this object, you can start the animation manually by calling the animate() method.

// Initialise the animation $('.my-spliflap').splitFlap({autoplay: false});  // Get the animation object and start it manually $('.my-spliflap').splitFlap('splitflap').animate();

You May Also Like