1.0.23 • Published 3 years ago
@kissmybutton/motorcortex-slides v1.0.23
motorcortex-slides
Demo
Installation
$ npm install --save @kissmybutton/motorcortex-slides
# OR
$ yarn add @kissmybutton/motorcortex-slides
Loading
import MotorCortex from "@kissmybutton/motorcortex";
import slides from "@kissmybutton/motorcortex-slides";
const SlidesPlugin = MotorCortex.loadPlugin(slides);
Create incident
introClip
const introClip = new Clip.Intro(
{
title: "Demo",
subtitle: "Promo Plugin",
description: `Lorem ipsum dolor, sit amet consectetur adipisicing elit. Totam
eveniet eosdsdawdw numquam facilis libero iure natus, voluptatibus
deserunt laboriosam, perspiciatis consequatur nostrum.`,
month: "December"
bgUrl: "./kissmybutonbg.jpg",
overlayColor: "#ff00004d",
mainColor: "blue",
speed: 2
},
{
selector: ".container1"
}
);
introClip Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
subtitle | subtitle text | string |
description | description text | string |
month | the month | string |
bgUrl | the path of background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elements | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
transition
const transition = new Clip.Transition(
{
title: "test",
speed: 2
},
{
selector: ".container2"
}
);
transition Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
speed | animation speed. Defaults to 1 | num, min:0 |
SlideDateOne
const dayOne = new Clip.SlideDateOne(
{
subtitle: "MOTORCORTEX TEAM",
titleone: "the",
str: "Present",
description: `Lorem ipsum dolor, sit amet consectetur adipisicing elit. Totam
eveniet eosdsdawdw numquam facilis libero iure natus, voluptatibus
deserunt laboriosam, perspiciatis consequatur nostrum.`,
bgUrl: "./kissmybutonbg.jpg",
overlayColor: "#ff00004d",
mainColor: "blue",
bgUrl2: "./bg2.jpg",
month: "December",
day: `monday`,
number: "20",
year: "2019",
speed: 2
},
{
selector: ".container3"
}
);
SlideDateOne Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
subtitle | subtitle text | string |
description | description text | string |
month | the month | string |
day | the day name | string |
number | the number of day | string |
year | the year | string |
bgUrl | the path of background image | string |
bgUrl2 | the path of second background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elements | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
Scrolslide
const scrolPresenter = new Clip.Scrolslide(
{
title: "Presenter",
name: "JOE SMO",
position: "Web developer at KissMyButton",
bgUrl: "./bg3.jpg",
overlayColor: "#ff00004d",
mainColor: "blue",
speed: 2
},
{
selector: ".container4"
}
);
Scrolslide Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
name | second title | string |
position | subtitle | string |
bgUrl | the path of background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elements | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
LtRslide
const ltrPresenter = new Clip.LtRslide(
{
title: "Presenter",
name: "JOE SMO",
position: "Web developer at KissMyButton",
bgUrl: "./bg4.jpg",
overlayColor: "#ff00004d",
mainColor: "blue",
speed: 2
},
{
selector: ".container6"
}
);
LtRslide Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
name | second title | string |
position | (secondary subtitle, can used to describe the job position of the presenter) | string |
bgUrl | the path of background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elements | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
SlideDateTwo
const dayTwo = new Clip.SlideDateTwo(
{
title: "Presenter",
name: "JOE SMO",
position: "Web developer at KissMyButton",
bigTitle: "Event",
bgUrl: "./bg5.jpg",
overlayColor: "#ff00b34d",
dateOverlay: "#ff00b3",
mainColor: "#00ff40",
bgUrl2: "./bg2.jpg",
month: "December",
day: `monday`,
number: "20",
year: "2019",
speed: 2
},
{
selector: ".container7"
}
);
SlideDateTwo Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
bigTitle | big title title text | string |
name | second title | string |
position | (secondary subtitle, can used to describe the job position of the presenter) | string |
month | the month | string |
day | the day name | string |
number | the number of day | string |
year | the year | string |
bgUrl | the path of background image | string |
bgUrl2 | the path of second background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
dateOverlay | the overlay color of date container | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elementes | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
BtTslide
const bttPresenter = new Clip.BtTslide(
{
title: "Presenter",
name: "JOE SMO",
position: "Web developer at KissMyButton",
bgUrl: "./bg4.jpg",
overlayColor: "#ff00004d",
mainColor: "blue",
speed: 2
},
{
selector: ".container4"
}
);
BtTslide Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
name | second title | string |
position | (secondary subtitle, can used to describe the job position of the presenter) | string |
bgUrl | the path of background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elementes | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
BtTslideDate
const bttDay = new Clip.BtTslideDate(
{
title: "Presenter",
name: "JOE SMO",
position: "Web developer at KissMyButton",
bgUrl: "./bg3.jpg",
overlayColor: "#ff00b34d",
dateOverlay: "#ff00b3",
mainColor: "#00ff40",
bgUrl2: "./bg2.jpg",
month: "December",
day: `monday`,
number: "20",
year: "2019",
speed: 2
},
{
selector: ".container10"
}
);
BtTslideDate Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
name | second title | string |
position | subtitle | string |
month | the month | string |
day | the day name | string |
number | the number of day | string |
year | the year | string |
bgUrl | the path of background image | string |
bgUrl2 | the path of second background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
dateOverlay | the overlay color of date container | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elementes | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
LtRslideTop
const ltrPresenterTop = new Clip.LtRslideTop(
{
title: "Presenter",
name: "JOE SMO",
position: "Web developer at KissMyButton",
bgUrl: "./bg2.jpg",
overlayColor: "#ff00004d",
mainColor: "blue",
speed: 2
},
{
selector: ".container11"
}
);
LtRslideTop Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
name | second title | string |
position | subtitle | string |
bgUrl | the path of background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elementes | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
RtLslide
const rtlPresenter = new Clip.RtLslide(
{
title: "Presenter",
name: "JOE SMO",
position: "Web developer at KissMyButton",
bgUrl: "./bg4.jpg",
overlayColor: "#ff00004d",
mainColor: "blue",
speed: 2
},
{
selector: ".container4"
}
);
RtLslide Attrs
Name | Are | Values |
---|---|---|
title | title text | string |
name | second title | string |
position | subtitle | string |
bgUrl | the path of background image | string |
overlayColor | the overlay color of background image | hex values or RGB(A) or text ("blue", "red", etc) |
mainColor | the main color of elementes | hex values or RGB(A) or text ("blue", "red", etc) |
speed | animation speed. Defaults to 1 | num, min:0 |
Just add your incident to any clip
anyClip.addIncident(rtlPresenter, 0);
License
1.0.23
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.0
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 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