roll-a-die
Advanced tools
Comparing version
{ | ||
"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 | ||
[](https://www.npmjs.org/package/roll-a-die) | ||
[](https://www.npmjs.org/package/roll-a-die) [](https://travis-ci.com/chukwumaijem/roll-a-die) | ||
[](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'); |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
0
-100%3611
-97.62%3
-76.92%0
-100%40
-24.53%