From 9e0421c76e82132537c90e7da6e04885689c79de Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Wed, 31 Aug 2022 17:42:30 -0700 Subject: [PATCH] add animated popup example --- source | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/source b/source index 1cf8c5d1f58..a773e0ba0fe 100644 --- a/source +++ b/source @@ -81197,6 +81197,25 @@ dictionary DragEventInit : MouseEventInit { display:none and other display values is not possible.

+
+

The following is an example of an animated pop-up:

+ +
<div popup="auto" id="foo">
+  A fancy pop-up with no Javascript
+</div>
+<style>
+  [popup] {
+    opacity: 0;
+    transform: translate(-100px,100px);
+    transition: all 1.5s;
+  }
+  [popup]:open {
+    transform: translate(0,0);
+    opacity: 1;
+  }
+</style>
+
+

Every element which is not in the no pop-up state has the following members: