diff --git a/README.md b/README.md index 68f2e9a..9439f4c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Useful for the alignment of overlayed images, served by the IIIF Image API, and Try it out by pasting in some full IIIF Image URIs, such as [framemark.vam.ac.uk/collections/2018KU6176/full/full/0/default.jpg](https://framemark.vam.ac.uk/collections/2018KU6176/full/full/0/default.jpg) -## [Stop-motion viewer](https://vanda.github.io/iiif-features/frameAnimator.html) +## [Stop-motion viewer](https://vanda.github.io/iiif-features/flickBook.html) A prototype viewer for interacting with stop-motion image sets, such as Edweard Muybridge produced in his work Animal Locomotion. **Drag** the image! diff --git a/compariscope.html b/compariscope.html index 8c2b22a..56bbc5f 100644 --- a/compariscope.html +++ b/compariscope.html @@ -11,41 +11,8 @@ + IIIF Compariscope - @@ -57,7 +24,8 @@
- +

We've added an example image link below. Click '+' to insert (or add your IIIF API URL)

+ + - > @@ -69,386 +37,6 @@
- - + diff --git a/css/compariscope.css b/css/compariscope.css new file mode 100644 index 0000000..fc09d04 --- /dev/null +++ b/css/compariscope.css @@ -0,0 +1,33 @@ +html, body, #cs-wrapper { height:100%; margin:0; text-align:center; } +body { background:#333; color:#000; font:10px/1 courier,monospace; } +.display-none { display:none!important; } +#cs-input-text { color: #fff; font-size: 14px; margin-top: -20px; } +#cs-editor { background:#fff url(img/compariscope/cross-hairs.png) 50% 50% no-repeat; height:400px; width:400px; margin:5px auto 20px; outline:2px dashed #f54007; overflow:hidden; position:relative; resize:both; } +#cs-editor::after { content:"❖"; cursor:pointer; font-size:20px; background:#f54007; line-height:16px; height:16px; width:16px; text-align:center; position:absolute; bottom:0; right:0; } +#cs-editor img { cursor:pointer; outline:4px dashed #f54007; position:absolute; left:0; top:0; } +#cs-viewer { height:75%; position:relative; width:75%; } +#cs-viewer img { cursor:pointer; margin:auto; max-height:100%; max-width:100%; position:absolute; top:0; bottom:0; left:0; right:0; user-select:none; } +#cs-viewer, +.cs-preview #cs-editor, .cs-preview .cs-ctrl { display:none; } +.cs-preview #cs-viewer { display:block; } +.cs-ctrl { width:800px; max-width:90%; margin:0 auto 20px; text-align:center; } +.cs-btn { background:#f54007; border-radius:10px; box-shadow:inset 0 0 2px #000; cursor:pointer; display:inline-block; font-size:20px; font-weight:600; height:24px; line-height:24px; text-align:center; width:24px; vertical-align:middle; } +.cs-btn:active { margin:1px 0 0 1px; } +.cs-btn.active { background:#000; color:#f54007; } +#cs-iiif-src { border:0; box-sizing:border-box; display:inline-block; padding:4px; height:24px; width:calc(100% - 160px); text-align:right; } +#cs-fader, #cs-range { width:100%; } +#cs-range { background:#fff; } +#cs-range div { border-right:1px solid #fff; box-sizing:border-box; color:#f54007; float:left; font-weight:600; padding-right:4px; text-align:right; } +#cs-mode { width:6em; z-index:1; } +#cs-mode::after { content:'Preview'; } +.cs-preview #cs-mode { position:fixed; right:5%; top:5%; } +.cs-preview #cs-mode::after { content:'Edit'; } +#cs-mixer { display:inline-block; position:fixed; left:5%; top:5%; width:6em; z-index:1; } +#cs-mixer::after { content:'Meld'; } +#cs-mixer.cs-splitter::after { content:'Split'; } +#cs-viewer.cs-split img { max-width:50%; right:50%; } +#cs-viewer.cs-split img:nth-child(2) { left:50%; right:0; } +#cs-viewer.cs-unsplit img { max-width:50%; } +#cs-viewer.cs-split img, +#cs-viewer.cs-unsplit img { transition:left 1s, right 1s; } +#cs-op-url { background:#fff; font-size:18px; height:22px; line-height:22px; white-space:nowrap; } diff --git a/frameAnimator.html b/flickBook.html similarity index 99% rename from frameAnimator.html rename to flickBook.html index 7432d0e..e544c49 100644 --- a/frameAnimator.html +++ b/flickBook.html @@ -5,7 +5,7 @@ - iiif Flick Viewer + iiif Flick Book