Fork me on GitHub
Wodry.js is a simple jQuery plugin for a text flipping/rotating written in CoffeeScript|It was inspired by the Adjector.js|Wodry.js does the same things as Adjector.js but it has new features that allow you to set animation from animations collection, set your own callback on content flipping, etc
Examples
$('.wodry').wodry({
    animation: 'rotateAll',
    delay: 1000
});
Wodry.js is a simple jQuery plugin|a content flipper|wiritten in CoffeeScript
$('.wodryRX').wodry({
    animation: 'rotateX',
    delay: 1000,
    animationDuration: 800
});
Wodry.js is cool|simple|flexible
$('.wodryRY').wodry({
    animation: 'rotateY',
    delay: 1000,
    animationDuration: 300
});
Wodry.js can flip|rotate your text
How it works

In the first place you need to include wodry.css and wodry.js (or wodry.min.js) files then create html tag with content that will flip/rotate (like this):

<div>
    Bla bla bla <span class="wodry">word1|word2|word3</span>
</div>

And in the script tag add this:

$('.wodry').wodry();

In this case it will works with default settings. But if you want you can specify settings of wodry.js:

$('.wodry').wodry({ //settings });
Custom settings

Settings object has the following fields:

  • separator: sets a custom separator between flipped text. Default value: '|";
  • delay: sets a delay of interations. Default value: 2000;
  • animationDuration: sets duration of animation. Default value: 500;
  • animation: sets a type of animation. Default value: 'rotateY';
  • callback: sets a callback that calls on each iteration. Default value: an empty function;
  • shift: specify the X,Y and Z values of shifting. Default value: {x:0,y:0,z:0};

List of animations: rotateX, rotateY, rotateAll, scaleX, scaleY, scaleAll, clockwise, anticlockwise

Get it

You can install it from bower:

bower install wodry

Or download it from GitHub

License

The MIT License (MIT)

Copyright (c) 2014 Sergey Golovin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.