From 2ede57d571e382f5aae167bd2a059a12fa1108ea Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 26 Feb 2024 12:09:08 -0700 Subject: add new post --- docs/feed.rss | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) (limited to 'docs/feed.rss') diff --git a/docs/feed.rss b/docs/feed.rss index 5cafe59..244ab87 100644 --- a/docs/feed.rss +++ b/docs/feed.rss @@ -4,8 +4,8 @@ Navan's Archive Rare Tips, Tricks and Posts https://web.navan.dev/en - Sat, 17 Feb 2024 19:51:03 -0000 - Sat, 17 Feb 2024 19:51:03 -0000 + Mon, 26 Feb 2024 12:07:42 -0000 + Mon, 26 Feb 2024 12:07:42 -0000 250 @@ -3547,6 +3547,50 @@ Otherwise, it calls the custom action.

]]> + + + https://web.navan.dev/posts/2024-02-26-control-element-under-another-element-html-css.html + + + Interacting with underlying element in HTML + + + With CSS you can disable any interactions with an element and directly control the underlying element + + https://web.navan.dev/posts/2024-02-26-control-element-under-another-element-html-css.html + Mon, 26 Feb 2024 11:57:00 -0000 + Interacting with underlying element in HTML + +

I know that the title is a bit weird. I was trying to interact with a video under an iPhone Bezel Screen frame.

+ +
+
<div class="row-span-2 md:col-span-1 rounded-xl border-2 border-slate-400/10 bg-neutral-100 p-4 dark:bg-neutral-900">
+    <div class="content flex flex-wrap content-center justify-center">
+        <img src="iphone-12-white.png" class="h-[60vh] z-10 absolute">
+        <!--<img src="screenshot2.jpeg" class="h-[57vh] mt-4 mr-1 rounded-[2rem]">-->
+        <video src="screenrec.mp4" class="h-[57vh] mt-4 mr-1 rounded-[2rem]" controls muted autoplay></video>
+    </div>
+</div>
+
+
+ +

Video Under a Transparent Image

+ +

Turns out, you can disable pointer events!

+ +

In Tailwind, it is as simple as adding pointer-events-none to the bezel screen.

+ +

In CSS, this can be done by:

+ +
+
.className {
+    pointer-events: none
+}
+
+
+]]>
+
+ https://web.navan.dev/posts/2019-12-10-TensorFlow-Model-Prediction.html -- cgit v1.2.3