0.1.14 • Published 3 years ago

@kissmybutton/motorcortex-backgrounds v0.1.14

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

motorcortex-backgrounds

Demo

Check it out here

Installation

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

Loading

import {loadPlugin} from "@kissmybutton/motorcortex";
import BackgroundsDefinition from "@kissmybutton/motorcortex-backgrounds";
const Plugin = loadPlugin(BackgroundsDefinition);

Create incident

BgOpener

const BgOpener = new Plugin.BgOpener(
  {
    width: 512,
    height: 288,
    bgUrl:"https://kissmybutton.github.io/motorcortex-slides/demo/kissmybutonbg.jpg",
    timing:0.3,
    easing:"easeInQuad",
    exitStart:2000
  },
  {
    selector: ".container1"
  }
);

BgOpener Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
bgUrlurl of the bg imagestring
easingeasing of the animationstring
exitStartthe millisecond that we want to start the bg exitingnum

TwoSidesReveal

const TwoSidesReveal = new Plugin.TwoSidesReveal(
  {
    width: 512,
    height: 288,
    bgUrl:
    "https://kissmybutton.github.io/motorcortex-slides/demo/kissmybutonbg.jpg",
    easing:"easeInQuad",
  },
  {
    selector: ".container2"
  }
);

TwoSidesReveal Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
bgUrlurl of the bg imagestring
easingeasing of the animationstring

RowReveal

const RowReveal = new Plugin.RowReveal(
  {
    width: 512,
    height: 288,
    bgUrl:
    "https://kissmybutton.github.io/motorcortex-slides/demo/kissmybutonbg.jpg",
    easing:"easeOutQuart",
    exitStart:2000,
    bgOut: true
  },
  {
    selector: ".container3"
  }
);

RowReveal Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
bgUrlurl of the bg imagestring
easingeasing of the animationstring
exitStartthe millisecond that we want to start the bg exitingnum
bgOutset true if we like to have a bg exitboolean

ColumnReveal

const ColumnReveal = new Plugin.ColumnReveal(
  {
    width: 512,
    height: 288,
    bgUrl:
    "https://kissmybutton.github.io/motorcortex-slides/demo/kissmybutonbg.jpg",
    easing:"easeOutQuart",
    exitStart:2000,
    bgOut: true
  },
  {
    selector: ".container4"
  }
);

ColumnReveal Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
bgUrlurl of the bg imagestring
easingeasing of the animationstring
exitStartthe millisecond that we want to start the bg exitingnum
bgOutset true if we like to have a bg exitboolean

Grid

const Grid = new Plugin.Grid(
  {
    width: 512,
    height: 288,
    color: "#000",
    columns: 6,
    rows : 4,
  },
  {
    selector: ".container6"
  }
);

Grid Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
colorthe color of the backgroundhex,rgb
columnshow many columns the grid will havenum
rowshow many rows the grid will havenum

ThreeSidesReveal

const ThreeSidesReveal = new Plugin.ThreeSidesReveal(
  {
    width: 512,
    height: 288,
    bgUrl: "https://kissmybutton.github.io/motorcortex-slides/demo/bg3.jpg",
    overlayColor: "#ff0000",
    grid: true,
    gridDuration:1,
    gridColor: "#000",
    columns: 6,
    rows : 4,
  },
  {
    selector: ".container5",
  }
);

ThreeSidesReveal Attrs

NameAreValues
widthwidth of incidentnum
heightheight of incidentnum
bgUrlurl of the bg imagestring
overlayColoroverlay color of backgroundhex,rgb
gridset true if we like to have a gidboolean
gridDurationgrid incident durationnum
gridColorthe color of the backgroundhex,rgb
columnshow many columns the grid will havenum
rowshow many rows the grid will havenum
0.1.14

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 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