INNER CODE UNIT · JavaScript
smoothstep
mario-andreschak/FLUJO · githubpages/short/app.js:131
const smoothstep = p => {
p = clamp(p);
return p * p * (3 - 2 * p);
};
const mixTransform = (x = 0, y = 0, scale = 1, rotate = 0) =>
`translate3d(${x}px, ${y}px, 0) scale(${scale}) rotate(${rotate}deg)`;
const stage = $("#stage");
const voiceover = $("#voiceover");
const captions = $("#captions");
const poster = $("#poster");
const endOverlay = $("#end-overlay");
const playPause = $("#play-pause");
const playIcon = $("#play-icon");
const pauseIcon = $("#pause-icon");
const timeline = $("#timeline");
const timelineFill = $("#timeline-fill");
const timelineBuffer = $("#timeline-buffer");