0.3.0 • Published 2 years ago

@donkeyclip/motorcortex-textfxs v0.3.0

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

MotorCortex-Textfxs

Table of Contents

Demo

Check it out here

Intro / Features

Using MotorCortex-Textfxs you can create stunning text animations.

This Plugin exposes three Incidents:

  • SvgLines
  • SvgExplosion
  • Shadow

Getting Started

Installation

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

Importing and loading

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

Creating Incidents

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",
  },
  {
    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)
fontFamilyfont familystring
fontSizesize of the fontnumber
fontWeightthe Weight of the fontnumber

IMPORTANT

If you like to change the font family you need to include it into root clip properties

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

IMPORTANT

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

Shadow

const Shadow = new Plugin.Shadow(
  {
    text: "Shadow",
    width: 1728,
    height: 300,
    background: "#d52e3f",
    colors: ["#e942f5", "#efa032", "#46b59b", "#017e7f", "#052939", "#c11a2b"],
    fontSize: 250,
    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

IMPORTANT

If you like to change the font family you need to include it into root clip properties

FontWeight

const FontWeight = new Clip.FontWeight(
  {
    width: 1920,
    height: 300,
    text: "FontWeight Animation",
    textColor: "#ff0000",
    repeats: 70,
    fontSize: 20,
    fontFamily: "Commissioner",
    fontWeightList: [100, 200, 300, 400, 500, 600, 700, 800, 900],
    rotate: 90
  },
  {
    selector: ".container4"
  }
);

FontWeight Attrs

NameAreValues
texttextstring
widthtotal width of clip containerall positive numbers
heighttotal height of clip containerall positive numbers
textColorthe color of texthex values or RGB(A) or text ("blue", "red", etc)
repeatstotal lines of textnumber
fontFamilyfont familystring
fontSizesize of the fontnumber
rotatedegrees for rotate transformationnumber
fontWeightLista list of all the weights that text will getnumbers

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

0.3.0

2 years ago

0.2.0

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.9

2 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago