Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

240 B
Raw Blame
export const CURSOR_REFERENCE_VIEWPORT_WIDTH = 1920;

export function getCursorViewportScale(viewportWidth: number, minimumScale = 0): number {
	return Math.max(minimumScale, Math.max(0, viewportWidth) / CURSOR_REFERENCE_VIEWPORT_WIDTH);
}