From 9e0421c76e82132537c90e7da6e04885689c79de Mon Sep 17 00:00:00 2001
From: Joey Arhar
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:
<div popup=auto id="foo">
This is a pop-up!
-<div>
+</div>
<button popupshowtarget="foo">
Show a pop-up
-<button>
+</button>
The following shows how popuptoggletarget
can
open and close a manual pop-up, which can't be closed with light dismiss:
<div popup=manual id="foo">
This is a pop-up!
-<div>
+</div>
<button popuptoggletarget="foo">
Show or hide a pop-up
-<button>
+</button>
The pop-up target attributes allow certain types of buttons to show and hide