0.1.6 • Published 3 years ago

@kissmybutton/motorcortex-textfxs v0.1.6

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

motorcortex-textfxs

Demo

Check it out here

Installation

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

Loading

const MotorCortex = require("@kissmybutton/motorcortex/");
const textfx = require("@kissmybutton/motorcortex-textfxs");
const Plugin = MotorCortex.loadPlugin(textfx);

Create incident

SvgLines

const SvgLines = new Plugin.SvgLines(
  {
    text: "SvgLines",
    width: 1728,
    height: 300,
    background: "#22292C",
    colors: ["#64d3ce", "#2a92ce82", "#ff003c", "#2a92ce2e", "#2a92ce1c"],
    strokeWidth: 3,
    fontSize: 250,
    fontFamily: "Rubik Mono One",
    speed: 0.75
  },
  {
    selector: ".container3"
  }
);

SvgLines Attrs

NameAreValues
texttextstring
widthtotal width of clip containerall positive numbers
heighttotal height of clip containerall positive numbers
backgroundthe color of backgroundhex values or RGB(A) or text ("blue", "red", etc)
colorsthe list colors of svg elementeshex values or RGB(A) or text ("blue", "red", etc)
speedanimation speed. Defaults to 1num, min:0
fontFamilyfont familystring
fontSizesize of the fontnumber
fontWeightthe Weight of the fontnumber

SvgExplosion

const SvgExplosion = new Plugin.SvgExplosion(
  {
    text: "SvgExplosion",
    width: 1728,
    height: 300,
    background: "#22292C",
    colors: [
      "#FBDB4A",
      "#F3934A",
      "#EB547D",
      "#9F6AA7",
      "#5476B3",
      "#2BB19B",
      "#70B984"
    ],
    fontFamily: "Rubik Mono One",
    speed: 0.75
  },
  {
    selector: ".container1"
  }
);

SvgExplosion Attrs

NameAreValues
texttextstring
widthtotal width of clip containerall positive numbers
heighttotal height of clip containerall positive numbers
backgroundthe color of backgroundhex values or RGB(A) or text ("blue", "red", etc)
colorslist of colors for leterhex values or RGB(A) or text ("blue", "red", etc)
fontFamilyfont familystring
fontSizesize of the fontnumber
fontWeightthe Weight of the fontnumber

Shadow

const Shadow = new Plugin.Shadow(
  {
    text: "Shadow",
    width: 1728,
    height: 300,
    background: "#d52e3f",
    colors: ["#e942f5", "#efa032", "#46b59b", "#017e7f", "#052939", "#c11a2b"],
    fontSize: 250,
    speed: 0.75,
    textColor: "#fcedd8",
    fontFamily: "Pacifico",
    reverce: false
  },
  {
    selector: ".container2"
  }
);

Shadow Attrs

NameAreValues
texttextstring
widthtotal width of clip containerall positive numbers
heighttotal height of clip containerall positive numbers
backgroundthe color of backgroundhex values or RGB(A) or text ("blue", "red", etc)
colorsthe list colors of svg elementeshex values
speedanimation speed. Defaults to 1num, min:0
textColorthe main color of texthex values or RGB(A) or text ("blue", "red", etc)
fontFamilyfont familystring
fontSizesize of the fontnumber
revercereverse tha animation after finishboolean
fontWeightthe Weight of the fontnumber

Font

if like to change the font you need to include it in to root clip properties

Just add your incident to any clip

anyClip.addIncident(SvgLines, 0);

License

MIT License

Kiss My Button

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago