Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

1.0 KB
Raw Blame
.line {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation-name: draw;
	animation-duration: 1.1s;
	animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
	animation-fill-mode: forwards;
}

.fade {
	opacity: 0;
	animation-name: fade-in;
	animation-duration: 0.6s;
	animation-timing-function: ease;
	animation-delay: var(--d, 0.35s);
	animation-fill-mode: forwards;
}

.bar {
	transform-box: fill-box;
	transform-origin: center bottom;
	transform: scaleY(0);
	animation-name: grow;
	animation-duration: 0.55s;
	animation-timing-function: cubic-bezier(0.3, 1.3, 0.5, 1);
	animation-delay: var(--d, 0s);
	animation-fill-mode: forwards;
	transition: opacity 0.15s ease;
}

.dot {
	transition:
		cx 0.12s ease,
		cy 0.12s ease;
}

.guide {
	transition: transform 0.08s linear;
}

@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes fade-in {
	to {
		opacity: 1;
	}
}

@keyframes grow {
	to {
		transform: scaleY(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.line,
	.fade,
	.bar {
		animation-duration: 0.01ms;
		animation-delay: 0s;
	}
}