Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Slideshow nudge: ripple a big peach ring across the canvas

nyblnet6ba43ca0d68e
diff --git a/slides/src/styles.css b/slides/src/styles.css
index d2b41b3c..38e82c3b 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -1531,16 +1531,32 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }
box-shadow: 0 4px 14px rgb(20 30 45 / 0.10);
overflow: visible;
}
-/* first-run nudge: an expanding ring draws the eye to how to start a show.
- Runs a few times then settles; retired for good once they present (JS). */
+/* first-run nudge: a peach ring ripples out across the canvas to point out how
+ to start a show. A thin ::after circle grows from the pill (border stays
+ crisp because we animate size, not scale). A few laps, then it settles;
+ retired for good once they present (JS). */
+.ed-present-pill.ed-hint-pulse { position: relative; }
+.ed-present-pill.ed-hint-pulse::after {
+ content: '';
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ width: 60px;
+ height: 60px;
+ transform: translate(-50%, -50%);
+ border-radius: 50%;
+ border: 2.5px solid rgb(255 158 138 / 0.7);
+ pointer-events: none;
+ z-index: -1;
+ animation: ed-hint-pulse 2.2s ease-out 6;
+}
@keyframes ed-hint-pulse {
- 0% { box-shadow: 0 4px 14px rgb(20 30 45 / 0.10), 0 0 0 0 rgb(255 158 138 / 0.60); }
- 70% { box-shadow: 0 4px 14px rgb(20 30 45 / 0.10), 0 0 0 18px rgb(255 158 138 / 0); }
- 100% { box-shadow: 0 4px 14px rgb(20 30 45 / 0.10), 0 0 0 0 rgb(255 158 138 / 0); }
+ 0% { width: 60px; height: 60px; opacity: 0; }
+ 12% { opacity: 0.75; }
+ 100% { width: 1100px; height: 1100px; opacity: 0; }
}
-.ed-present-pill.ed-hint-pulse { animation: ed-hint-pulse 1.8s ease-out 7; }
@media (prefers-reduced-motion: reduce) {
- .ed-present-pill.ed-hint-pulse { animation: none; box-shadow: 0 4px 14px rgb(20 30 45 / 0.10), 0 0 0 3px rgb(255 158 138 / 0.55); }
+ .ed-present-pill.ed-hint-pulse::after { animation: none; width: 60px; height: 60px; opacity: 0.6; }
}
.ed-present-pill .ed-pill-main {
border-radius: 999px 0 0 999px;