Forum Discussion
MathNotermans-9
9 months agoCommunity Member
Forgot my own advice ! DONOT upgrade immediately.
And that is NEVER update Articulate Storyline immediately when Articulate sends an update. As they done it again. The latest update ( 3.86.32080.0 ) fails to work with older Javascript triggers. D...
Jürgen_Schoene_
Community Member
the new emphasize animations are solved with normal javascript in user,js, e.g.
function ExecuteScript(strId) {
switch (strId) {
case "5iJndnVgyvU": // trigger on timeline starts
Script1();
break;
case "6NRem5OttDF": // trigger emphasize animation
Script2();
break;
}
}
window.InitExecuteScripts = function () {
var player = GetPlayer();
var object = player.object;
var addToTimeline = player.addToTimeline;
var setVar = player.SetVar;
var getVar = player.GetVar;
window.Script1 = function () {
console.log("hallo world");
};
window.Script2 = function () {
const target = object("60g35ET153K");
const duration = 750;
const easing = "ease-in-out";
const id = "6l0E5nUIcp0";
const growAmount = 0.2;
player.addForTriggers(
id,
target.animate([{ scale: `${1 + growAmount}` }], {
fill: "forwards",
duration,
easing,
})
);
};
};
SamHill
9 months agoSuper Hero
Ah, thanks.