Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

2.6 KB
Raw Blame
@import "../shared/paper.css";

.bolt-body {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: draw 0.9s ease 0.15s forwards;
}

.spark-1 {
	animation-delay: 1.1s;
}

.spark-2 {
	animation-delay: 1.25s;
}

.spark-3 {
	animation-delay: 1.4s;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	width: min(680px, calc(100vw - 48px));
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 20px 16px 18px;
	border: 1.5px solid var(--track);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.65);
	animation: fade-up 0.5s ease both;
}

.step:nth-child(1) {
	animation-delay: 0.2s;
}

.step:nth-child(2) {
	animation-delay: 0.3s;
}

.step:nth-child(3) {
	animation-delay: 0.4s;
}

.step-doodle {
	width: 44px;
	height: 44px;
	overflow: visible;
}

.doodle-stroke-sm {
	fill: none;
	stroke: var(--ink);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.record-dot {
	fill: var(--accent);
	animation: record-pulse 1.8s ease-in-out 1s infinite;
}

.upload-arrow {
	fill: none;
	stroke: var(--accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 2 4.2;
	animation: march 1.1s linear infinite;
}

.arrow-head {
	stroke: var(--accent);
}

.link-piece {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: draw 0.5s ease 0.6s forwards;
}

.link-piece-2 {
	animation-delay: 0.8s;
}

.link-bar {
	stroke: var(--accent);
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: draw 0.35s ease 1.05s forwards;
}

.step-count {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.step p {
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--ink);
}

.tips-card {
	width: min(680px, calc(100vw - 48px));
	margin-top: 18px;
	animation-delay: 0.5s;
}

.tips {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tips li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink);
}

.tip-dot {
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: var(--accent);
	transform: translateY(-1px);
}

.footnote {
	animation-delay: 0.6s;
}

@keyframes record-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

@media (max-width: 720px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.step,
	.tips-card,
	.bolt-body,
	.link-piece,
	.link-piece-2,
	.link-bar {
		animation-duration: 0.01ms;
		animation-delay: 0s;
	}

	.record-dot,
	.upload-arrow {
		animation: none;
	}
}