json
// config.json
{
"role": "event",
"type": "test-event-addon",
"label": "Event Addon",
"description": "Test Event Addon Description",
"defaultValues": {
},
"fields": []
}
js
// script.js
// element: the element that you select
// commandCssSelector : what is the value of cssSelector that you use to select the element?
await page.evaluate(function (element) {
element.animate(
[
{ transform: "rotate(0) scale(1)" },
{ transform: "rotate(360deg) scale(0)" },
],
{ duration: 2000, iterations: 1 }
);
}, element);