1.2.0 • Published 3 years ago

@kissmybutton/motorcortex-animetitles v1.2.0

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

motorcortex-animetitles

Demo

Installation

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

Loading

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

Create incident

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
  },
  {
    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

RolingText

const nameOfIncident = new Titles.RolingText(
  {
    width: 250,
    size: "L",
    lineColor: "#ff0000",
    textColor: "#000",
    subTitle1: "test",
    subTitle2: "test2",
    subTitle3: "test3",
    stopOnLast: false,
    delayEnd : 3000
  },
  {
    selector: ".rolingtext"
  }
);

Rolingtext 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 , subTitle3roling text linesnormal text
stopOnLastif you like to stop animation on last text linetrue,false
delayEnddelay before last animationmillisecond

RotatadLineReveal

const nameOfIncident = new Titles.RotatadLineReveal(
  {
    duration: 5000,
    width: 800,
    size: "M",
    lineColor: "#ff0000",
    textColor: "#000",
    title: "Animetitle",
    subtitle: "MC Plugin",
    leftEnd: 100,
    stopOnLast: false,
    delayEnd : 3000
  },
  {
    selector: ".rotatedlinereveal"
  }
);

RotatadLineReveal 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

SvgBorder

const nameOfIncident = new Titles.SvgBorder(
  {
   duration: 5000,
    size: "L",
    lineColor: "#ff0000",
    textColor: "#000",
    subTitle: "Develop by",
    slogan: "-KMB-",
    title: "MotorCortex Team",
    stopOnLast: false,
    delayEnd : 3000
  },
  {
    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

Circle

const nameOfIncident = new Titles.Circle(
  {
    fontSize: 40,
    circleColor: "#ff0000",
    textColor: "#000",
    title: "IOAN",
    subTitle: "BRAPAPAPA",
    stopOnLast: false,
    delayEnd : 3000,
    width:500
  },
  {
    selector: ".circle"
  }
);

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
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

SvgDrow

const nameOfIncident = new Titles.SvgDrow(
  {
 duration: 1600,
    width: 900,
    size: "M",
    lineColor: "#ff0000",
    strokeDashOffset: 10000,
    StrokeDashArray: 10000,
    erase: true,
    svg: `svg code`,
    stopOnLast: false,
    delayEnd : 3000
  },
  {
    selector: ".svgdrow"
  }
);

SvgDrow 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
strokeDashOffset:The strokeDashOffset attribute is a presentation attribute defining an offset on the rendering of the associated dash array.number
StrokeDashArrayThe StrokeDashArray attribute is a presentation attribute defining the pattern of dashes and gaps used to paint the outline of the shape;number
eraseerase svg after drow ittrue, false
svgThe width of the title containernumbers
stopOnLastif you like to stop animation on last text linetrue,false
delayEnddelay before last animationmillisecond

LogoBox

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

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

Add incident to your clip

clipName.addIncident(nameOfIncident, 0);
1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

5 years ago