index.html 20.5 KB
Newer Older
ℹ️❤️🖥's avatar
ℹ️❤️🖥 committed
1 2 3 4
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
i❤computers's avatar
i❤computers committed
5
    <meta name="viewport" content="width=device-width, initial-scale=1">
ℹ️❤️🖥's avatar
ℹ️❤️🖥 committed
6 7 8 9 10 11 12 13 14 15
    <title>Vexillology - 99% Invisible</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.0.0/normalize.css">
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
    <style>
        html, body {
            height: 100%;
        }

        body {
            background-color: rgb(102, 98, 109);
16 17 18 19 20
        }

        div {
            background-color: rgb(255, 233, 125);
            height: 100%;
i❤computers's avatar
i❤computers committed
21 22
            width: 71%;
            max-width: 1000px;
23
            margin: 0 auto;
ℹ️❤️🖥's avatar
ℹ️❤️🖥 committed
24 25 26 27 28 29 30 31
        }

        article {
            font-family: 'Open Sans', sans-serif;
            background-color: rgb(255, 233, 125);
            padding: 0.5em;
        }

32 33 34 35 36 37
        article:after {
            content: "";
            display: table;
            clear: both;
        }

i❤computers's avatar
i❤computers committed
38 39 40
        h1 {
            font-size: 2.5em;
        }
ℹ️❤️🖥's avatar
ℹ️❤️🖥 committed
41
        p {
i❤computers's avatar
i❤computers committed
42
            font-size: 1.9em;
ℹ️❤️🖥's avatar
ℹ️❤️🖥 committed
43 44 45 46 47 48 49 50 51 52 53 54
            margin: 0;
        }

        span {
            background: linear-gradient(to right, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, .12) 50%);
            background-size: 200%;
            transition: background .4s; /* make sure transition time matches MAX_TRANSITION_TIME in script.js */
        }

        span.highlighted {
            background-position: -100%
        }
55

56 57 58 59 60 61 62
        figure {
            float: right;
            width: 50%;
            text-align: center;
            font-style: italic;
            margin: 38px 40px;
        }
63

64 65 66 67
        figure div {
            width: 100%;
        }

i❤computers's avatar
i❤computers committed
68
        @media screen and (max-width: 750px) {
69 70 71 72 73 74 75 76 77 78 79
            div {
                width: initial;
            }

            h1 {
                font-size: 1.6em;
            }

            p {
                font-size: 1.3em;
            }
80 81 82 83 84

            figure {
                float: none;
                width: initial;
            }
85
        }
86

87 88 89 90 91 92 93 94 95
        /* When not animated, white flag wipes should be hidden*/
        [data-cue-position="flag"] .wipes {
            opacity: 0;
        }

        /* Fade blue stripes to white */
        [data-cue-position="flag"].highlighted .wipes {
            transition: opacity 0.3s ease-in;
            opacity: 1;
96 97
        }

98 99 100 101
        /* Wipe them back in */
        [data-cue-position="flag"].highlighted .wipes.highlighted {
            transition: transform 0.3s ease;
            transform-origin: right;
102 103 104
            transform: scaleX(0);
        }

105 106 107
        [data-cue-position="flag"].highlighted .star {
            animation-duration: 0.3s;
            animation-name: fadeStarsAndSetUpForFinalTransition;
108
            transform: scale(2);
109
            opacity: 0;
110 111
        }

112 113 114
        [data-cue-position="flag"].highlighted .star.highlighted {
            transition: transform 0.1s ease-in, opacity 0.1s ease-in;
            transform-origin: center;
115 116 117
            opacity: 1;
            transform: scale(1);
        }
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132

        @keyframes fadeStarsAndSetUpForFinalTransition {
            from {
                opacity: 1;
                transform: scale(1);
            }
            99% {
                opacity: 0;
                transform: scale(1);
            }
            to {
                transform: scale(2);
                opacity: 0;
            }
        }
133 134 135 136 137 138 139 140 141 142 143 144 145 146

        .wipes {
            opacity: 0;
        }

        svg a {
            cursor: pointer;
        }

        [data-cue-position="flag"] .water {
            transition: 0.25s ease-out;
            opacity: 0;
        }

147
        [data-cue-position="flag"]:hover .water,
148 149
        [data-cue-position="water"].highlighted,
        [data-cue-position="water"].highlighted .water {
150 151 152 153 154
            animation: 1s fade;
            opacity: 1;
        }

        [data-cue-position="flag"].highlighted:hover .water,
155 156
        [data-cue-position="flagSymbols"].highlighted:hover [data-cue-position="water"]:not(.highlighted) .water,
        [data-cue-position="flagSymbols"].highlighted:hover [data-cue-position="water"]:not(.highlighted) {
157 158 159 160
            opacity: 0;
            animation: none;
        }

161
        [data-cue-position="flag"] image.waterBottomRight:nth-child(odd) {
162 163 164
            animation: 0.5s moveWaterToTopLeft linear infinite alternate;
        }

165
        [data-cue-position="flag"] image.waterTopLeft:nth-child(odd) {
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
            animation: 0.5s moveWaterToBottomRight linear infinite alternate;
        }

        @keyframes moveWaterToTopLeft {
            to {
                transform: translate3d(-10px, -10px, 0);
            }
        }

        @keyframes moveWaterToBottomRight {
            to {
                transform: translate3d(10px, 10px, 0);
            }
        }

        [data-cue-position="flag"] .star + g image {
            transition: 0.25s ease-out;
            opacity: 0;
        }

186 187 188 189 190 191 192 193 194 195 196
        [data-cue-position="flag"]:hover .star + g image,
        g[data-cue-position="firstMaskedStar"].highlighted image,
        g[data-cue-position="secondMaskedStar"].highlighted image,
        g[data-cue-position="thirdMaskedStar"].highlighted image,
        g[data-cue-position="fourthMaskedStar"].highlighted image {
            animation: 1s;
            animation-name: moveStar, fade;
            opacity: 1;
        }

        [data-cue-position="flag"].highlighted:hover .star + g image,
197 198 199 200
        [data-cue-position="flagSymbols"].highlighted:hover g[data-cue-position="firstMaskedStar"]:not(.highlighted) image,
        [data-cue-position="flagSymbols"].highlighted:hover g[data-cue-position="secondMaskedStar"]:not(.highlighted) image,
        [data-cue-position="flagSymbols"].highlighted:hover g[data-cue-position="thirdMaskedStar"]:not(.highlighted) image,
        [data-cue-position="flagSymbols"].highlighted:hover g[data-cue-position="fourthMaskedStar"]:not(.highlighted) image {
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
            opacity: 0;
            animation: none;
        }

        @keyframes moveStar {
            from {
                transform: scale3d(0.85, 0.85, 0.85) translate3d(130px, 82px, 0px);
            }
        }

        @keyframes fade {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
ℹ️❤️🖥's avatar
ℹ️❤️🖥 committed
219 220 221
    </style>
</head>
<body>
222
<audio id="excerpt" src="99Pi%20Excerpt.mp3" preload></audio>
223 224 225
<div>
    <article>
        <p>
226 227 228 229 230 231 232
            <span data-cue-position="0">This </span>
            <span data-cue-position="1">is </span>
            <span data-cue-position="2">99% </span>
            <span data-cue-position="3">invisible, </span>
            <span data-cue-position="4">I&#39;m </span>
            <span data-cue-position="5">Roman </span>
            <span data-cue-position="6">Mars. </span>
233 234
        </p>
        <h1>
235 236 237 238 239 240 241
            <span data-cue-position="7">The </span>
            <span data-cue-position="8">five </span>
            <span data-cue-position="9">basic </span>
            <span data-cue-position="10">principles </span>
            <span data-cue-position="11">of </span>
            <span data-cue-position="12">flag </span>
            <span data-cue-position="13">design </span>
242 243
        </h1>
        <p>
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
            <span data-cue-position="7">The </span>
            <span data-cue-position="8">five </span>
            <span data-cue-position="9">basic </span>
            <span data-cue-position="10">principles </span>
            <span data-cue-position="11">of </span>
            <span data-cue-position="12">flag </span>
            <span data-cue-position="13">design </span>
            <span data-cue-position="14">according </span>
            <span data-cue-position="15">to the </span>
            <span data-cue-position="16">North American </span>
            <span data-cue-position="17">Vexillological </span>
            <span data-cue-position="19">(Vex-</span><span data-cue-position="20">illo-</span><span
                data-cue-position="21">logical. </span>
            <span data-cue-position="26">It&#39;s the </span>
            <span data-cue-position="27">extra </span>
            <span data-cue-position="28">&#39;lol&#39; </span>
            <span data-cue-position="29">that makes </span>
            <span data-cue-position="30">it sound </span>
            <span data-cue-position="31">weird) </span>
            <span data-cue-position="18">Association. </span>
            <span data-cue-position="22">Vexillology </span>
            <span data-cue-position="23">is the </span>
            <span data-cue-position="24">study of </span>
            <span data-cue-position="25">flags. </span>
268 269
        </p>
        <h1>
270 271 272 273
            <span data-cue-position="32">Number </span>
            <span data-cue-position="33">one: </span>
            <span data-cue-position="34">Keep </span>
            <span data-cue-position="35">it simple. </span>
274 275
        </h1>
        <p>
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331
            <span data-cue-position="36">The flag </span>
            <span data-cue-position="37">should be </span>
            <span data-cue-position="38">so simple </span>
            <span data-cue-position="39">that a </span>
            <span data-cue-position="40">child </span>
            <span data-cue-position="41">can draw it </span>
            <span data-cue-position="42">from memory. </span>
            <span data-cue-position="43">Before I </span>
            <span data-cue-position="44">moved to </span>
            <span data-cue-position="45">Chicago, </span>
            <span data-cue-position="46">in 2005, </span>
            <span data-cue-position="47">I didn&#39;t </span>
            <span data-cue-position="48">even </span>
            <span data-cue-position="49">know cities </span>
            <span data-cue-position="50">had </span>
            <span data-cue-position="51">their own </span>
            <span data-cue-position="52">flags. </span>
            <span data-cue-position="53">&quot;Most </span>
            <span data-cue-position="54">larger </span>
            <span data-cue-position="55">cities </span>
            <span data-cue-position="56">have </span>
            <span data-cue-position="57">flags.&quot; </span>
            <span data-cue-position="60">That&#39;s Ted K., </span>
            <span data-cue-position="62">flag expert, </span>
            <span data-cue-position="63">totally awesome </span>
            <span data-cue-position="64">guy. </span>
            <span data-cue-position="65">&quot;I&#39;m </span>
            <span data-cue-position="66">the editor </span>
            <span data-cue-position="67">of </span>
            <span data-cue-position="68">a </span>
            <span data-cue-position="69">scholarly </span>
            <span data-cue-position="70">journal </span>
            <span data-cue-position="71">on </span>
            <span data-cue-position="72">flags </span>
            <span data-cue-position="73">called </span>
            <span data-cue-position="74">&#39;Raven: </span>
            <span data-cue-position="75">A </span>
            <span data-cue-position="76">Journal </span>
            <span data-cue-position="77">of Vexillology.&#39;&quot; </span>
            <span data-cue-position="78">And that </span>
            <span data-cue-position="79">first city flag </span>
            <span data-cue-position="80">I discovered in Chicago </span>
            <span data-cue-position="81">is a beaut: </span>
            <span data-cue-position="82">a white </span>
            <span data-cue-position="83">field, </span>
            <span data-cue-position="84">two light </span>
            <span data-cue-position="85">blue </span>
            <span data-cue-position="86">horizontal </span>
            <span data-cue-position="87">stripes, </span>
            <span data-cue-position="88">and </span>
            <span data-cue-position="89">four </span>
            <span data-cue-position="90">six-pointed </span>
            <span data-cue-position="91">red </span>
            <span data-cue-position="92">stars </span>
            <span data-cue-position="93">across </span>
            <span data-cue-position="94">the middle. </span>
332
        </p>
333
        <figure data-cue-position="flagSymbols">
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356
            <svg data-cue-position="flag"  width="100%" height="100%" viewBox="0 0 720 480" version="1.1" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
    <defs>
        <clipPath id="topFlagBar" >
            <rect x="0" y="80" width="720" height="80"></rect>
        </clipPath>
        <clipPath id="bottomFlagBar" >
            <rect x="0" y="320" width="720" height="80"></rect>
        </clipPath>
        <clipPath id="firstStar">
            <path d="M150,180l11,41l41,-11l-30,30l30,30l-41,-11l-11,41l-11,-41l-41,11l30,-30l-30,-30l41,11l11,-41Z"></path>
        </clipPath>
        <clipPath id="secondStar">
            <path d="M290,180l11,41l41,-11l-30,30l30,30l-41,-11l-11,41l-11,-41l-41,11l30,-30l-30,-30l41,11l11,-41Z"></path>
        </clipPath>
        <clipPath id="thirdStar">
            <path d="M430,180l11,41l41,-11l-30,30l30,30l-41,-11l-11,41l-11,-41l-41,11l30,-30l-30,-30l41,11l11,-41Z"></path>
        </clipPath>
        <clipPath id="fourthStar">
            <path d="M570,180l11,41l41,-11l-30,30l30,30l-41,-11l-11,41l-11,-41l-41,11l30,-30l-30,-30l41,11l11,-41Z"></path>
        </clipPath>
    </defs>
    <path d="M0,0l720,0l0,480l-720,0l0,-480Z" style="fill:#fff;fill-rule:nonzero;" aria-hidden="true"></path>
    <rect x="0" y="80" width="720" height="80" style="fill:#b3ddf2;" aria-hidden="true"></rect>
357
    <g class="water" aria-hidden="true" data-cue-position="water">
358 359 360 361 362 363 364 365 366 367 368 369
        <g clip-path="url(#topFlagBar)">
            <image href="image/Chicago River.png" xlink:href="image/Chicago River.png" width="1350" height="247" x="-315" y="-3.5"></image>
        </g>
        <g clip-path="url(#topFlagBar)">
            <image class="waterTopLeft" href="image/Chicago River.png" xlink:href="image/Chicago River.png" width="1350" height="247" x="-320" y="-8.5" opacity="0.5"></image>
        </g>
        <g clip-path="url(#topFlagBar)">
            <image class="waterBottomRight" href="image/Chicago River.png" xlink:href="image/Chicago River.png" width="1350" height="247" x="-310" y="2.5" opacity="0.5"></image>
        </g>
    </g>
    <rect data-cue-position="topWipe" class="wipes" x="0" y="75" width="720" height="90" style="fill:#FFF;" aria-hidden="true"></rect>
    <rect x="0" y="320" width="720" height="80" style="fill:#b3ddf2;" aria-hidden="true"></rect>
370
    <g class="water" aria-hidden="true" data-cue-position="water">
371 372 373 374 375 376 377 378 379 380 381 382 383
        <g clip-path="url(#bottomFlagBar)">
            <image class="water" href="image/Chicago River.png" xlink:href="image/Chicago River.png" width="1350" height="247" x="-315" y="236.5"></image>
        </g>
        <g clip-path="url(#bottomFlagBar)">
            <image class="waterBottomRight" href="image/Chicago River.png" xlink:href="image/Chicago River.png" width="1350" height="247" x="-310" y="231.5" opacity="0.5"></image>
        </g>
        <g clip-path="url(#bottomFlagBar)">
            <image class="waterTopLeft" href="image/Chicago River.png" xlink:href="image/Chicago River.png" width="1350" height="247" x="-320" y="241.5" opacity="0.5"></image>
        </g>
    </g>
    <rect data-cue-position="bottomWipe" class="wipes" x="0" y="315" width="720" height="90" style="fill:#FFF;" aria-hidden="true"></rect>
    <a href="https://en.wikipedia.org/wiki/Fort_Dearborn" xlink:title="Fort Dearborn" title="Fort Dearborn">
        <path data-cue-position="firstStar" class="star" d="M150,180l11,41l41,-11l-30,30l30,30l-41,-11l-11,41l-11,-41l-41,11l30,-30l-30,-30l41,11l11,-41Z" style="fill:#f00;fill-rule:nonzero;"></path>
384
        <g data-cue-position="firstMaskedStar" clip-path="url(#firstStar)">
385 386 387 388 389
            <image href="image/Fort_Dearborn_1831_Kinzie.jpg" xlink:href="image/Fort_Dearborn_1831_Kinzie.jpg" width="400" height="233" x="-20" y="130"></image>
        </g>
    </a>
    <a href="https://en.wikipedia.org/wiki/Great_Chicago_Fire" xlink:title="Great Chicago Fire" title="Great Chicago Fire">
        <path data-cue-position="secondStar" class="star" d="M290,180l11,41l41,-11l-30,30l30,30l-41,-11l-11,41l-11,-41l-41,11l30,-30l-30,-30l41,11l11,-41Z" style="fill:#f00;fill-rule:nonzero;"></path>
390
        <g data-cue-position="secondMaskedStar" clip-path="url(#secondStar)">
391 392 393 394 395
            <image href="image/Chicago_in_Flames_by_Currier_&_Ives,_1871.jpg" xlink:href="image/Chicago_in_Flames_by_Currier_&_Ives,_1871.jpg" width="400" height="269" x="-6" y="130"></image>
        </g>
    </a>
    <a href="https://en.wikipedia.org/wiki/World%27s_Columbian_Exposition" xlink:title="World's Columbian Exposition" title="World's Columbian Exposition">
        <path data-cue-position="thirdStar" class="star" d="M430,180l11,41l41,-11l-30,30l30,30l-41,-11l-11,41l-11,-41l-41,11l30,-30l-30,-30l41,11l11,-41Z" style="fill:#f00;fill-rule:nonzero;"></path>
396
        <g data-cue-position="thirdMaskedStar" clip-path="url(#thirdStar)">
397 398 399 400 401
            <image href="image/Brooklyn_Museum_-_Chicago_World's_Fair_-_Thomas_Moran_-_overall.jpg" xlink:href="image/Brooklyn_Museum_-_Chicago_World's_Fair_-_Thomas_Moran_-_overall.jpg" width="400" height="535" x="240" y="-60"></image>
        </g>
    </a>
    <a href="https://en.wikipedia.org/wiki/Century_of_Progress" xlink:title="Century of Progresss Exposition" title="Century of Progresss Exposition">
        <path data-cue-position="fourthStar" class="star" d="M570,180l11,41l41,-11l-30,30l30,30l-41,-11l-11,41l-11,-41l-41,11l30,-30l-30,-30l41,11l11,-41Z" style="fill:#f00;fill-rule:nonzero;"></path>
402
        <g data-cue-position="fourthMaskedStar" clip-path="url(#fourthStar)">
403 404 405
            <image href="image/Chicago_world's_fair,_a_century_of_progress,_expo_poster.jpg" xlink:href="image/Chicago_world's_fair,_a_century_of_progress,_expo_poster.jpg" width="301" height="449" x="420" y="165"></image>
        </g>
    </a>
406
</svg>
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421
            <figcaption>Figure 1. Flag of Chicago, Illinois (<a
                    href="https://commons.wikimedia.org/wiki/File:Flag_of_Chicago,_Illinois.svg">Source: Wikipedia</a>).
                Blue
                stipes embedded with photo of Chicago River (<a
                        href="https://commons.wikimedia.org/wiki/File:20090524_Buildings_along_Chicago_River_line_the_south_border_of_the_Near_North_Side_and_Streeterville_and_the_north_border_of_Chicago_Loop,_Lakeshore_East_and_Illinois_Center.jpg">Source:
                    Wikipedia</a>). Stars embedded with illustrations of Fort Dearborn (<a
                        href="https://en.wikipedia.org/wiki/File:Fort_Dearborn_1831_Kinzie.jpg">Source: Wikipedia</a>),
                the
                Great Chicago Fire (<a
                        href="https://en.wikipedia.org/wiki/File:Chicago_in_Flames_by_Currier_%26_Ives,_1871_(cropped).jpg">Source:
                    Wikipedia</a>), World's Columbian Exposition (<a
                        href="https://en.wikipedia.org/wiki/File:Brooklyn_Museum_-_Chicago_World%27s_Fair_-_Thomas_Moran_-_overall.jpg">Source:
                    Wikipedia</a>), Century of Progress Exposition (<a
                        href="https://en.wikipedia.org/wiki/File:Chicago_world%27s_fair,_a_century_of_progress,_expo_poster,_1933,_2.jpg">Source:
                    Wikipedia</a>).
422
            </figcaption>
423
        </figure>
424
        <h1>
425 426 427 428 429
            <span data-cue-position="95">Number </span>
            <span data-cue-position="96">two: </span>
            <span data-cue-position="103">Use </span>
            <span data-cue-position="104">meaningful </span>
            <span data-cue-position="105">symbolism. </span>
430 431
        </h1>
        <p>
432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
            <span data-cue-position="97">The </span>
            <span data-cue-position="98">blue </span>
            <span data-cue-position="99">stripes </span>
            <span data-cue-position="100">represent </span>
            <span data-cue-position="101">the water, </span>
            <span data-cue-position="102">the lake, and the rivers. </span>
            <span data-cue-position="106">The </span>
            <span data-cue-position="107">red </span>
            <span data-cue-position="108">stars </span>
            <span data-cue-position="109">represent </span>
            <span data-cue-position="110">significant </span>
            <span data-cue-position="111">events </span>
            <span data-cue-position="112">in </span>
            <span data-cue-position="113">Chicago&#39;s </span>
            <span data-cue-position="114">history. </span>
447 448 449
        </p>
    </article>
</div>
450
<script src="bling.js"></script>
451
<script src="cues.js"></script>
ℹ️❤️🖥's avatar
ℹ️❤️🖥 committed
452 453 454
<script src="script.js"></script>
</body>
</html>