Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

roll-a-die

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roll-a-die - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

7

package.json
{
"name": "roll-a-die",
"version": "1.0.2",
"version": "1.0.3",
"description": "Simple 3D dice roll using CSS3 animation.",

@@ -50,3 +50,6 @@ "main": "dist/roll-a-die.js",

},
"homepage": "https://github.com/chukwumaijem/roll-a-die"
"homepage": "https://github.com/chukwumaijem/roll-a-die",
"files": [
"dist/roll-a-die.js"
]
}
# Roll A Die
[![npm package](https://img.shields.io/npm/v/roll-a-die.svg?style=flat-square)](https://www.npmjs.org/package/roll-a-die)
[![npm package](https://img.shields.io/npm/v/roll-a-die.svg?style=flat-square)](https://www.npmjs.org/package/roll-a-die) [![Build Status](https://img.shields.io/travis/chukwumaijem/roll-a-die.svg?style=flat-square)](https://travis-ci.com/chukwumaijem/roll-a-die)
[![Build Status](https://img.shields.io/travis/chukwumaijem/roll-a-die.svg?style=flat-square)](https://travis-ci.org/chukwumaijem/roll-a-die)
Simple 3D dice roll animator by CSS3 Animation.
## With bower
install
$ bower install roll-a-die
Load styles in <head></head>
## Vanilla JS
Copy dist/roll-a-die.js into your library folder
Load it into your HTML script
```
<link rel="stylesheet" href="bower_components/roll-a-die/dist/roll-a-die.css">
<script type="text/javascript" src="path/to/roll-a-die.js"></script>
```
Load script at end of <body></body>.
Call the method with its options.
```
<script type="text/javascript" src="bower_components/roll-a-die/dist/roll-a-die.js"></script>
rollDice({ element, numberDice: 2, callback});
```
You can animate dice rolling by globaly defined function rollADie().
rollDice({ element, numberDice: 2, callback});
## With npm (and CommonJS builder)

@@ -29,8 +21,3 @@ Install with npm.

Copy `roll-a-die.css` into your public directory.
Load styles in `<head></head>`.
```<link rel="stylesheet" href="path/to/roll-a-die.css">```
You can animate dice rolling.
Call method
```

@@ -37,0 +24,0 @@ const rollDice = require('roll-a-die');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc