1.4.0 • Published 2 years ago

@donkeyclip/motorcortex-abstracts v1.4.0

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

MotorCortex-Abstracts

Table of Contents

Demo

Check it out here

Intro / Features

MotorCortex-Abstracts helps you add cross, line, circle, dot and bubble effects in your clip in an easy way.

This Plugin exposes nine Incidents:

  • CrossMoveRight
  • CrossMoveRightOutline
  • CrossRandom
  • CrossRowReveal
  • VerticalLinesMove
  • HorizontalLinesMove
  • CircleExplosion
  • CircleBubbleUp
  • Dots

Getting Started

Installation

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

Importing and Loading

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

Creating Incidents

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

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

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

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

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

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

Adding Incidents in your clip

clipName.addIncident(incidentName,startTime);

Contributing

In general, we follow the "fork-and-pull" Git workflow, so if you want to submit patches and additions you should follow the next steps: 1. Fork the repo on GitHub 2. Clone the project to your own machine 3. Commit changes to your own branch 4. Push your work back up to your fork 5. Submit a Pull request so that we can review your changes

License

MIT License

Sponsored by

1.4.0

2 years ago

1.3.0

2 years ago

1.1.0

2 years ago

1.0.2

3 years ago