1.1.0 • Published 2 years ago

@donkeyclip/motorcortex-comets v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

motorcortex-comets

Demo

Check it out here

Installation

$ npm install --save @donkeyclip/motorcortex-comets
# OR
$ yarn add @donkeyclip/motorcortex-comets

Loading

const MotorCortex = require("@donkeyclip/motorcortex/");
const cometsDefinition = require("@donkeyclip/motorcortex-comets");
const Plugin = MotorCortex.loadPlugin(BannersDefinition);

Create incident

Comets

const comet = new MyPlugin.Comets(
  {
    width: 800,
    height: 300,
    cometMaxSize: 581,
    cometMinSize: 200,
    meteoriteColors: ["#FFFFFF", "#FFDC63"],
    auraIner: ["#57DDBA", "#62D8B9", "#7CC8B3"],
    auraOuter: ["#47F7C5", "#87B3C1"],
    items: 3,
    repeats: 5,
    duration: 8000,
  },
  {
    selector: ".comet1",
  }
);

Comets Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
cometMaxSizethe maximum size of cometsnum
cometMinSizethe minimum size of cometsnum
meteoriteColorsThe list of colors of meteoritearray of colors
auraInerThe list of colors for the iner auraarray of colors
auraOuterThe list of colors for the iner auraarray of colors
itemshow meny commet will fallnum
repeatshow meny times clip wiil loopnum
durationmax duration of one comet fallnum

Stars

const stars = new MyPlugin.Stars(
  {
    width: 800,
    height: 300,
    starMaxSize: 60,
    starMinSize: 15,
    starColor: "#F0F0F0",
    starGlowColor:
      "0 0 0 0 0.950946003   0 0 0 0 0.81265567   0 0 0 0 0.51528336  0 0 0 1 0",
    items: 15,
    repeats: 5,
    duration: 8000,
  },
  {
    selector: ".comet2",
  }
);

Stars Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
starMaxSizethe maximum size of each startnum
starMinSizethe minimum size of each startnum
starColorthe color of a starcolor
starGlowColorthe color of star clowsting of ColorMatrix value
itemsstart numbernum
repeatshow meny times clip wiil loopnum
durationmax duration of one full blinking animationnum

License

MIT License

1.1.0

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago