1.0.3 • Published 3 years ago

@kissmybutton/motorcortex-abstracts v1.0.3

Weekly downloads
53
License
MIT
Repository
github
Last release
3 years ago

motorcortex-abstracts

Demo

Check it out here

Installation

$ npm install --save @kissmybutton/motorcortex-abstracts
# OR
$ yarn add @kissmybutton/motorcortex-abstracts

Loading

import { loadPlugin } from "@kissmybutton/motorcortex";
import AbstractsDefinition from "@kissmybutton/motorcortex-abstracts";
const Plugin = loadPlugin(AbstractsDefinition);

Create incident

CrossMoveRight

const CrossMoveRight = new Plugin.CrossMoveRight(
  {
    width: 425,
    height: 240,
    crossSize: 30,
    crossThiknes: 5,
    travelDistance: 240,
    items: 3,
    color: "#8300ff",
  },
  {
    selector: ".container1",
  }
);

CrossMoveRight Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
crossSizeheight and width of crossnum
crossThicknesscross line thicknessnum
travelDistancehow far cross will movenum
itemshow many crosses will be in an incidentnum
colorcolor of the crosseshex,rgb or color name

CrossMoveRightOutline

const CrossMoveRightOutline = new Plugin.CrossMoveRightOutline(
  {
    width: 425,
    height: 240,
    crossSize: 30,
    travelDistance: 240,
    steps: 5,
    color: "#8300ff",
  },
  {
    selector: ".container2",
  }
);

CrossMoveRightOutline Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
crossSizeheight and width of crossnum
travelDistancehow far cross will movenum
stepshow many steps will cross make to reach the endnum
colorcolor of the crosseshex,rgb or color name

CrossRandom

const CrossRandom = new Plugin.CrossRandom(
  {
    width: 425,
    crossSize: 30,
    crossThickness: 5,
    items: 12,
    color: "#8300ff",
    rows: 3,
    timing: 0.5,
  },
  {
    selector: ".container3",
  }
);

CrossRandom Attrs

NameAreValues
widthwidth of incidentnum
crossSizeheight and width of crossnum
crossThicknesscross line thicknessnum
itemshow many cross will benum
colorcolor of the crosseshex,rgb or color name
rowshow many rows of cross will benum
timingincident duration multipliernum

VerticalLinesMove

const VerticalLinesMove = new Plugin.VerticalLinesMove(
  {
    width: 425,
    height: 240,
    maxLineWidth: 250,
    color: "#8300ff",
  },
  {
    selector: ".container4",
  }
);

VerticalLinesMove Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
maxLineWidththe maximum width of a linenum
colorcolor of the crosseshex,rgb or color name

CircleExplosion

const CircleExplosion = new Plugin.CircleExplosion(
  {
    width: 425,
    height: 240,
    maxCirlcleSize: 30,
    travelDistance: 200,
    color: "#8300ff",
    items: 5,
    minR: 0,
    maxR: 180,
    border: true,
  },
  {
    selector: ".container5",
  }
);

CircleExplosion Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
maxCirlcleSizethe maximum size of a circlenum
travelDistancehow far cross will movenum
colorcolor of the crosseshex,rgb or color name
itemshow many circles will benum
minRindicate the minimum angle of circle movementnum
maxRindicate the maximum angle of circle movementnum
borderif circle will be hollowboolean

CircleBubbleUp

const CircleBubbleUp = new Plugin.CircleBubbleUp(
  {
    width: 425,
    height: 240,
    maxCirlcleSize: 30,
    travelDistance: 200,
    color: "#8300ff",
    items: 5,
    border: true,
  },
  {
    selector: ".container6",
  }
);

CircleBubbleUp Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
maxCirlcleSizethe maximum size of a circlenum
travelDistancehow far cross will movenum
colorcolor of the crosseshex,rgb or color name
itemshow many circles will benum
borderif circle will be hollowboolean

HorizontalLinesMove

const HorizontalLinesMove = new Plugin.HorizontalLinesMove(
  {
    width: 425,
    height: 240,
    maxLineHeight: 50,
    color: "#8300ff",
  },
  {
    selector: ".container7",
  }
);

HorizontalLinesMove Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
maxLineWidththe maximum width of a linenum
colorcolor of the crosseshex,rgb or color name

Dots

const Dots = new Plugin.Dots(
  {
    width: 425,
    dotSize: 10,
    items: 28,
    color: "#8300ff",
    rowGap: 30,
    columnGap: 50,
    rows: 7,
    timing: 1.5,
    repeats: 3,
  },
  {
    selector: ".container8",
  }
);

Dots Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
dotSizethe size of a dotsnum
colorcolor of the crosseshex,rgb or color name
rowGapthe gap between every row of dotsnum
columnGapthe gap between every column of dotsnum
itemshow many dots will benum
rowshow many rows of dots will benum
timingincident duration multipliernum
repeatshow many times dots will be flashingnum

CrossRowReveal

const CrossRowReveal = new Plugin.CrossRowReveal(
  {
    width: 425,
    crossSize: 30,
    crossThickness: 5,
    items: 8,
    color: "#8300ff",
    reverse: false,
    timing: 1,
  },
  {
    selector: ".container9",
  }
);

CrossRowReveal Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
crossSizeheight and width of crossnum
crossThicknesscross line thicknessnum
itemshow many crosses will be in an incidentnum
colorcolor of the crosseshex,rgb or color name
reverseif crosses will be revealed from left to right or the oppositeboolean
timingincident duration multipliernum
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago