Giter Site home page Giter Site logo

motorcortex-abstracts's Introduction

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

Name Are Values
width width of incident num
height height of incident num
crossSize height and width of cross num
crossThickness cross line thickness num
travelDistance how far cross will move num
items how many crosses will be in an incident num
color color of the crosses hex,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

Name Are Values
width width of incident num
height height of incident num
crossSize height and width of cross num
travelDistance how far cross will move num
steps how many steps will cross make to reach the end num
color color of the crosses hex,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

Name Are Values
width width of incident num
crossSize height and width of cross num
crossThickness cross line thickness num
items how many cross will be num
color color of the crosses hex,rgb or color name
rows how many rows of cross will be num
timing incident duration multiplier num

CrossRowReveal

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

CrossRowReveal Attrs

Name Are Values
width width of incident num
height height of incident num
crossSize height and width of cross num
crossThickness cross line thickness num
items how many crosses will be in an incident num
color color of the crosses hex,rgb or color name
reverse if crosses will be revealed from left to right or the opposite boolean
timing incident duration multiplier num

VerticalLinesMove

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

VerticalLinesMove Attrs

Name Are Values
width width of incident num
height height of incident num
maxLineWidth the maximum width of a line num
color color of the crosses hex,rgb or color name

HorizontalLinesMove

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

HorizontalLinesMove Attrs

Name Are Values
width width of incident num
height height of incident num
maxLineWidth the maximum width of a line num
color color of the crosses hex,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

Name Are Values
width width of incident num
height height of incident num
maxCirlcleSize the maximum size of a circle num
travelDistance how far cross will move num
color color of the crosses hex,rgb or color name
items how many circles will be num
minR indicate the minimum angle of circle movement num
maxR indicate the maximum angle of circle movement num
border if circle will be hollow boolean

CircleBubbleUp

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

CircleBubbleUp Attrs

Name Are Values
width width of incident num
height height of incident num
maxCirlcleSize the maximum size of a circle num
travelDistance how far cross will move num
color color of the crosses hex,rgb or color name
items how many circles will be num
border if circle will be hollow boolean

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

Name Are Values
width width of incident num
height height of incident num
dotSize the size of a dots num
color color of the crosses hex,rgb or color name
rowGap the gap between every row of dots num
columnGap the gap between every column of dots num
items how many dots will be num
rows how many rows of dots will be num
timing incident duration multiplier num
repeats how many times dots will be flashing num

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

motorcortex-abstracts's People

Contributors

alexdor avatar dependabot[bot] avatar elisavetampatzidou avatar github-actions[bot] avatar ivanvl01 avatar kissmybutton-bot avatar prieston avatar renovate-bot avatar renovate[bot] avatar

Watchers

 avatar  avatar  avatar  avatar

motorcortex-abstracts's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): replace dependency rollup-plugin-terser with @rollup/plugin-terser 0.1.0
  • chore(deps): update dependency caniuse-lite to v1.0.30001621
  • chore(deps): update dependency webpack-dev-server to v4.15.2
  • chore(deps): update babel monorepo to v7.24.6 (@babel/cli, @babel/core, @babel/eslint-parser, @babel/plugin-syntax-jsx, @babel/plugin-transform-react-jsx, @babel/preset-env)
  • chore(deps): update dependency @donkeyclip/motorcortex to v9.17.1
  • chore(deps): update dependency browserslist to v4.23.0
  • chore(deps): update dependency core-js to v3.37.1
  • chore(deps): update dependency css-loader to v6.11.0
  • chore(deps): update dependency webpack to v5.91.0
  • chore(deps): update reviewdog/action-eslint action to v1.24.0
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency css-loader to v7
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-plugin-prettier to v5
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency lint-staged to v15
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency rimraf to v5
  • chore(deps): update dependency rollup to v4
  • chore(deps): update dependency webpack-cli to v5
  • chore(deps): update dependency webpack-dev-server to v5
  • chore(deps): update googlecloudplatform/release-please-action action to v4
  • chore(deps): update peaceiris/actions-gh-pages action to v4
  • chore(deps): update peter-evans/create-pull-request action to v6
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/bundle-size.yml
  • actions/checkout v3.6.0
  • actions/setup-node v3.8.2
  • pkg-size/action v1
.github/workflows/eslint.yml
  • actions/checkout v3.6.0
  • reviewdog/action-eslint v1.22.0
.github/workflows/github-page.yml
  • actions/checkout v3.6.0
  • actions/setup-node v3.8.2
  • peaceiris/actions-gh-pages v3.9.3
.github/workflows/misspell.yml
  • actions/checkout v3.6.0
  • sobolevn/misspell-fixer-action 0.1.0
  • peter-evans/create-pull-request v3.14.0
.github/workflows/release-please.yml
  • actions/checkout v3.6.0
  • GoogleCloudPlatform/release-please-action v3.7.13
  • actions/checkout v3.6.0
  • actions/setup-node v3.8.2
.github/workflows/test.yaml
  • actions/checkout v3.6.0
  • actions/setup-node v3.8.2
npm
package.json
  • @babel/cli 7.23.9
  • @babel/core 7.23.9
  • @babel/eslint-parser 7.23.9
  • @babel/plugin-syntax-jsx 7.23.3
  • @babel/plugin-transform-react-jsx 7.23.4
  • @babel/preset-env 7.23.9
  • @donkeyclip/motorcortex 9.14.0
  • @donkeyclip/motorcortex-player 2.10.11
  • @rollup/plugin-babel 5.3.1
  • @rollup/plugin-commonjs 21.1.0
  • @rollup/plugin-json 4.1.0
  • @rollup/plugin-node-resolve 13.3.0
  • babel-loader 8.3.0
  • browserslist 4.22.2
  • caniuse-lite 1.0.30001580
  • concurrently 7.6.0
  • core-js 3.35.1
  • css-loader 6.9.1
  • eslint 7.32.0
  • eslint-config-prettier 8.10.0
  • eslint-plugin-babel 5.3.1
  • eslint-plugin-import 2.29.1
  • eslint-plugin-node 11.1.0
  • eslint-plugin-prettier 4.2.1
  • eslint-plugin-promise 5.2.0
  • husky 7.0.4
  • lint-staged 12.5.0
  • prettier 2.8.8
  • rimraf 3.0.2
  • rollup 2.79.1
  • rollup-plugin-terser 7.0.2
  • tslib 2.6.2
  • webpack 5.90.0
  • webpack-cli 4.10.0
  • webpack-dev-server 4.15.1
  • node >=12

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

File: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: separateMajorReleases

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.