1.4.0 • Published 1 year ago

@donkeyclip/motorcortex-animetitles v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

MotorCortex-Animetitles

Table of Contents

Demo

Check it out here

Intro / Features

Using MotorCortex-Animetitles you can animate perfect titles for your clips, via its easy to use incidents.

This Plugin exposes ten incidents:

  • RotatedLine
  • RollingText
  • RotatedLineReveal
  • SvgBorder
  • Circle
  • SvgDraw
  • LogoBox
  • CircularText
  • LetterScale
  • RightOpacity

Getting Started

Installation

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

Importing and loading

import { loadPlugin } from "@donkeyclip/motorcortex";
import TitlesPlugin from "@donkeyclip/motorcortex-animetitles";
const Titles = loadPlugin(TitlesPlugin);

Creating Incidents

RotatedTextReveal

const nameOfIncident = new Titles.RotatedTextReveal(
  {
    text: "Rotated Reveal Incident",
    width: 600,
    color: "black",
    fontFamily: "Righteous",
    fontSize: 40,
    stagger: "0, 300",
    exitTime: 1000,
  },
  { duration: 2000, selector: ".rotatedtextreveal" }
);

RotatedTextReveal Attrs

NameAreValues
widthtotal width of clip containerall positive numbers
fontSizesize of the fontall positive numbers
colorthe color of texthex values or RGB
texttextnormal text
staggerstagger between words or lettersvalid Motorcortex stagger
fontFamilyfont familystring
exitTimetime for animation to exitnumber

TextReveal

const nameOfIncident = new new Titles.TextReveal(
  {
    text: "Reveal Incident",
    width: 500,
    color: "black",
    fontFamily: "Righteous",
    fontSize: 40,
    stagger: "0, 300,0.5,linear,omni",
    wordSplit: false,
    exitTime: 1000,
  },
  { duration: 2500, selector: ".rollingtext" }
)();

TextReveal Attrs

NameAreValues
widthtotal width of clip containerall positive numbers
fontSizesize of the fontall positive numbers
colorthe color of texthex values or RGB
texttextnormal text
staggerstagger between words or lettersvalid Motorcortex stagger
fontFamilyfont familystring
wordSplitfont splitting or word splittingtrue,false
exitTimetime for animation to exitnumber

RotatedLine

const nameOfIncident = new Titles.RotatedLine(
  {
    width: 400,
    size: "XL",
    lineColor: "#ff0000",
    textColor: "#000",
    subTitle1: "test",
    subTitle2: "test2",
    subTitle3: "test3",
    title: "dokimi",
    stopOnLast: false,
    delayEnd: 3000,
    fontFamily: "Rubik Mono One",
  },
  {
    selector: ".rotatedline",
  }
);

RotateLine Attrs

NameAreValues
widthtotal width of clip containerall positive numbers
sizescale of clip components"S","M","L","XL"
lineColorthe color of linehex values or RGB
textColorthe color of texthex values or RGB
subTitle1 , subTitle2 , subTitle3right textsnormal text
titleleft textnormal text
stopOnLastif you like to stop animation on last text linetrue,false
delayEnddelay before last animationmillisecond
fontFamilyfont familystring

RollingText

const nameOfIncident = new Titles.RollingText(
  {
    width: 450,
    size: "XL",
    lineColor: "#ff0000",
    textColor: "#000",
    subTitle1: "The",
    subTitle2: "MotorCortex Team",
    subTitle3: "Presents",
    stopOnLast: false,
    delayEnd: 1000,
    fontFamily: "Commissioner",
  },
  {
    selector: ".rollingtext",
  }
);

Rollingtext Attrs

NameAreValues
widthtotal width of clip containerall positive numbers
sizescale of clip components"S","M","L","XL","XXL","XXXL"
lineColorthe color of linehex values or RGB
textColorthe color of texthex values or RGB
subTitle1 , subTitle2 , subTitle3rolling text linesnormal text
stopOnLastif you like to stop animation on last text linetrue,false
delayEnddelay before last animationmillisecond
fontFamilyfont familystring

RotatedLineReveal

const nameOfIncident = new Titles.RotatedLineReveal(
  {
    width: 800,
    size: "M",
    lineColor: "#ff0000",
    textColor: "#000",
    title: "Animetitles",
    subtitle: "MC Plugin",
    leftEnd: 100,
    stopOnLast: false,
    fontFamily: "Commissioner",
  },
  {
    selector: ".rotatedlinereveal",
  }
);

RotatedLineReveal Attrs

NameAreValues
widthtotal width of clip containerall positive numbers
sizescale of clip components"S","M","L"
lineColorthe color of linehex values or RGB
textColorthe color of texthex values or RGB
titletitle textnormal text
subtitlesubtitle textnormal text
leftEndleft distance of componet from the left side of containernumbers
stopOnLastif you like to stop animation on last text linetrue,false
delayEnddelay before last animationmillisecond
fontFamilyfont familystring

SvgBorder

const nameOfIncident = new Titles.SvgBorder(
  {
    size: "L",
    lineColor: "#ff0000",
    textColor: "#000",
    subTitle: "Developed by",
    slogan: "-KMB-",
    title: "MotorCortex Team",
    stopOnLast: false,
    fontFamily: "Commissioner",
    borderGap: 300,
  },
  {
    selector: ".svgborder",
  }
);

SvgBorder Attrs

NameAreValues
widthtotal width of clip containerall positive numbers
sizescale of clip components"S","M","L"
lineColorthe color of linehex values or RGB
textColorthe color of texthex values or RGB
subTitletop left textnormal text
sloganunder border textnormal text
titletitle textnormal text
stopOnLastif you like to stop animation on last text linetrue,false
delayEnddelay before last animationmillisecond
fontFamilyfont familystring

Circle

const nameOfIncident = new Titles.Circle(
  {
    fontSize: 40,
    circleColor: "#ff0000",
    textColor: "#000",
    title: "ANIMATED",
    subTitle: "TITLES",
    stopOnLast: false,
    fontFamily: "Righteous",
    width: 500,
  },
  {
    selector: ".circle",
  }
);

IMPORTANT

In order to use tin incident you should include the img.svg that is in demo folder in your clip.js directory

Circle Attrs

NameAreValues
fontSizesize of the fontall positive numbers
widthtotal width of clip container and width/height of the circleall positive numbers
circleColorthe color of circlehex values or RGB
textColorthe color of texthex values or RGB
subTitletop left textnormal text
titlesvg cobe with 1 path tag onlysvg text
stopOnLastif you like to stop animation on last text linetrue,false
delayEnddelay before last animationmillisecond
fontFamilyfont familystring

LogoBox

const nameOfIncident = new Titles.LogoBox(
  {
    size: 2,
    textColor: "#fff",
    bgColor: "#000",
    subTitle1: "testdawdawddawd",
    subTitle2: "test2",
    subTitle3: "test3",
    width: 200,
    stopOnLast: false,
    logoUrl:
      "https://donkeyclip.github.io/motorcortex-animetitles/demo/logo.png",
    fontFamily: "Rubik Mono One",
  },
  {
    selector: ".logobox",
  }
);

IMPORTANT

In order to use tin incident you should include the logo.png image in your clip.js directory

LogoBox Attrs

NameAreValues
sizechange the size of elementall positive numbers
bgColorthe color of bghex values or RGB
textColorthe color of texthex values or RGB
subTitle1 , subTitle2 , subTitle3right textsnormal text
widthtotal width of text containerall positive numbers
stopOnLastif you like to stop animation on last text linetrue,false
logoUrlurl of an imagestring
fontFamilyfont familystring

CircularText

const nameOfIncident = new Titles.CircularText(
  {
    width: 500,
    height: 500,
    color: "#ff0000",
    text: "CircularText - AnimeTitles - MotorCortex - Plugin -",
    fontSize: 10,
    viewBox: 100,
    path: 38,
    fill: "#ff000000",
    fontFamily: "Righteous",
  },
  {
    selector: ".circulartext",
    repeats: 2,
  }
);

CircularText Attrs

NameAreValues
widthtotal width of clip containernumber
heighttotal height of clip containernumber
colorcolor for the texthex values or RGB
textthe displayed textstring
fontSizesize of the fontnumber
fontFamilyfont familystring
viewBoxwidth for the wrapper of the circlenumber
pathwidth for the circle's radiusnumber
fillcolor for the svg shapehex values or RGB

LetterScale

const nameOfIncident = new Titles.LetterScale(
  {
    width: 900,
    height: 900,
    color: "rebeccapurple",
    text: "LetterScale",
    fontSize: 100,
    stroke: false,
    strokeSize: 2,
    strokeColor: "rebeccapurple",
    fontFamily: "Righteous",
  },
  {
    selector: ".letterscale",
  }
);

LetterScale Attrs

NameAreValues
widthtotal width of clip containernumber
heighttotal height of clip containernumber
colorcolor for the texthex values or RGB
textthe displayed textstring
fontSizesize of the fontnumber
fontFamilyfont familystring
strokea border to SVG shapesboolean
strokeSizethe stroke's sizenumber
strokeColorthe stroke's colorhex values or RGB

RightOpacity

const nameOfIncident = new Titles.RightOpacity(
  {
    width: 1000,
    height: 250,
    text: "RightOpacity",
    color: "#0000",
    fontSize: 100,
    stroke: true,
    strokeSize: 2,
    strokeColor: "rebeccapurple",
    fontFamily: "Rubik Mono One",
    exitTime: 1000,
  },
  {
    selector: ".rightopacity",
  }
);

RightOpacity Attrs

NameAreValues
widthtotal width of clip containernumber
heighttotal height of clip containernumber
colorcolor for the texthex values or RGB
textthe displayed textstring
fontSizesize of the fontnumber
fontFamilyfont familystring
strokea border to SVG shapesboolean
strokeSizethe stroke's sizenumber
strokeColorthe stroke's colorhex values or RGB
exitTimetime for animation to exitnumber

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

1 year ago

1.2.3

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

3 years ago