From 1f264870c98510697a32e52ac2b8a81a24d6c1ff Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 12 Apr 2023 22:00:28 -0700 Subject: [PATCH] Repeat the CSS in the final section --- index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.html b/index.html index 20abe68..63395c7 100644 --- a/index.html +++ b/index.html @@ -269,6 +269,14 @@ new ResizeObserver(debounce(() => {

Full example

+

Here's the final CSS:

+
+.dynamic-line-clamp {
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: var(--lines);
+  overflow: hidden;
+}

And the final combined JavaScript with all the bells and whistles:

 function debounce(fn, wait) {
-- 
2.47.3