-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
Amador Mateo edited this page Nov 15, 2023
·
6 revisions
export default function myPlugin(script, geniallyEngine) {
script.slide.on("entering", () => {
console.log("entering slide");
});
script.slide.on("entered", () => {
console.log("entering slide");
});
script.slide.on("exiting", () => {
console.log("exiting slide");
});
script.slide.on("exited", () => {
console.log("exited slide");
});
}{
"configSchema": {
"fields": [
{
"type": "itemRef",
"name": "opacityItem",
"label": {
"en": "Item to reduce opacity"
},
"accept": [
"image",
],
"canBeNull": true
}
]
}
}script.slide.on("entering", () => {
const { opacityItem } = script.config;
element.opacity = 0.1;
}{
"configSchema": {
"fields": [
{
"type": "itemRef",
"name": "opacityItem",
"label": {
"en": "Item to reduce opacity"
},
"accept": [
"image",
],
"canBeNull": true
}
]
}
}script.slide.on("entering", () => {
const { opacityItem } = script.config;
opacityItem.on('click', () => {
element.opacity = 0.5;
});
}