INNER CODE UNIT · JavaScript
activateScene
mario-andreschak/FLUJO · githubpages/short/app.js:271
function activateScene(scene, t) {
const el = sceneEls.get(scene.id);
const opacity = sceneOpacity(t, scene.start, scene.end);
el.style.opacity = opacity.toFixed(4);
el.style.visibility = opacity > .001 ? "visible" : "hidden";
return { el, local: t - scene.start, opacity };
}
function reveal(el, local, at, duration = .8, options = {}) {
const {
x = 0,
y = 22,
scale = .92,
rotate = 0,
blur = 5,
exitAt = Infinity,
exitDuration = .5,
} = options;