MCPcopy Create free account
hub / github.com/pomber/code-surfer / fadeOut

Function fadeOut

packs/standalone/src/animation.ts:229–231  ·  view source on GitHub ↗
(offOpacity: number = 0)

Source from the content-addressed store, hash-verified

227}
228
229export function fadeOut(offOpacity: number = 0): StyleAnimation {
230 return (t: number) => ({ opacity: tween(1, offOpacity, t) });
231}
232
233export function fadeIn(offOpacity: number = 0): StyleAnimation {
234 return (t: number) => ({ opacity: tween(offOpacity, 1, t) });

Callers 2

fadeOutInFunction · 0.85
halfFadeOutFunction · 0.85

Calls 1

tweenFunction · 0.85

Tested by

no test coverage detected