Coder Social home page Coder Social logo

yarkb / wodry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yashilanka/wodry

0.0 1.0 0.0 33.07 MB

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 but it has new features that allow you to set animation from animations collection, set your own callback on content flipping, etc

Home Page: http://daynin.github.io/wodry/

License: MIT License

JavaScript 12.58% CSS 7.52% CoffeeScript 79.90%

wodry's Introduction

##About

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 but it has new features that allow you to set animation from animations collection, set your own callback on content flipping, etc.

[![examples-gif](./wodry-examples.gif "Examples")](http://daynin.github.io/wodry/#examples)

##How to get it

You can download this repository or install it from Bower:

bower install wodry

##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
});

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};
  • styles: set an array of styles (for example: ['style1','style2','style3']). It will change a style of a wodry tag on each flip one by one;

List of animations:

  • rotateX;
  • rotateY;
  • rotateAll;
  • scaleX;
  • scaleY;
  • scaleAll;
  • clockwise;
  • anticlockwise;

##Examples here

##Development

###Prerequirements

    npm install -g grunt-cli

When node.js and grunt will be installed you need to run 'npm install' command in a root folder of the project for installation of all dependencies.

For autocompiling .coffeescript to .js run grunt with 'dev' parameter in a root folder of the project:

    grunt dev

For project building run:

    grunt

###Contributions & Issues

All your issues and pull requests are welcome!

wodry's People

Contributors

daynin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.