Skip to content
master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
May 26, 2013
May 27, 2013

README.md

#jqueryDice

A simple dice plugin with a simple rolling animation

##Requirements

jQuery

##Usage

  <div id='dice'></dice>
  <script>
    $(function(){
      $("#dice")
        .dice()
        .click(fucntion(){ $(this).dice("roll"); });
    });
  </script>

##Options

  $(element).dice({
    diceSize : Size of dice in pixel (default 20),
    duration : Dice rolling duration in milliseconds (default 500)
  });
  
  
  $(element).dice("roll"[, v]);
  
  // v : target value. Default is random.
  
  $(element).dice("option", opt);
  
  // opt : An option object (like above)

##Demo

Click

About

A simple dice plugin with a simple rolling animation

Resources

Releases

No releases published

Packages

No packages published