You just hit a route that doesn't exist... the sadness.
8 |24 | As mentioned on{" "} 25 | 30 | framer/motion#294 31 | {" "} 32 | the child variant keys need to be named the same as the parent variant 33 | keys. This may change in the future but just something to be aware of.{" "} 34 |
35 |Simple implementation of page transitions on a Gatsby website.
7 |7 | Nunc ultricies ante quam, vel congue urna semper id. In a blandit lorem. 8 | Integer eros libero, varius at dui efficitur, efficitur iaculis lorem. Ut 9 | commodo risus id egestas porttitor. Proin at dignissim risus, et egestas 10 | enim. Pellentesque et enim vel diam molestie interdum quis at ante. Cras 11 | viverra sit amet ante eget bibendum. Integer dictum, turpis vitae dapibus 12 | egestas, ipsum nisl ullamcorper magna, at gravida lectus sapien sed orci. 13 | Cras neque mi, efficitur sit amet ipsum non, mollis gravida eros. Mauris 14 | quis euismod quam. Curabitur nunc odio, condimentum at velit nec, 15 | fringilla gravida diam. Nullam vitae porttitor est. 16 |
17 |18 | Donec tristique condimentum dictum. Maecenas hendrerit lorem at ornare 19 | dictum. Fusce faucibus libero eget sollicitudin porttitor. Nunc in 20 | hendrerit ipsum. Phasellus convallis maximus leo a venenatis. Suspendisse 21 | tristique mollis eros, ac ullamcorper enim mollis sed. Quisque mauris leo, 22 | lobortis ut faucibus sed, porttitor non odio. Phasellus feugiat, velit sit 23 | amet tempus scelerisque, massa mi commodo justo, et aliquet magna lorem id 24 | turpis. Sed a ligula luctus, posuere dui id, placerat mi. Sed iaculis, 25 | arcu eget viverra aliquet, ante nibh volutpat mauris, sit amet finibus 26 | odio erat non dui. Vestibulum aliquam condimentum quam, nec cursus erat 27 | auctor sit amet. Aenean in purus neque. 28 |
29 |30 | Curabitur condimentum dui sem, a porta ligula cursus vitae. Nulla a ex id 31 | erat viverra luctus. Maecenas facilisis vulputate luctus. Nam id ipsum 32 | diam. Cras non tortor ultricies, luctus enim ut, accumsan enim. Nam 33 | suscipit enim vel pellentesque iaculis. Suspendisse non odio sit amet elit 34 | vestibulum facilisis a eget metus. Nam dapibus urna et cursus euismod. 35 | Nunc consectetur felis tortor, et luctus purus tincidunt ut. Nunc diam 36 | libero, tincidunt ac magna id, finibus aliquet mi. Vivamus quis gravida 37 | leo. Suspendisse rutrum consectetur ante, nec ullamcorper nisl feugiat eu. 38 | Sed mollis, justo sit amet convallis pulvinar, nisi eros placerat orci, 39 | non efficitur metus ex ut massa. Fusce ullamcorper blandit leo, eu pretium 40 | ligula bibendum eu. In non hendrerit ante. Aliquam erat volutpat. 41 |
42 |43 | Nullam ornare eleifend nunc, ut consectetur massa mattis quis. In id 44 | ultricies leo, eu facilisis nibh. Maecenas sed ex placerat, tincidunt nisi 45 | at, hendrerit nulla. Maecenas fringilla magna ac sapien aliquet volutpat. 46 | Praesent pulvinar lacus sit amet egestas porttitor. Praesent tempus elit 47 | tortor, nec pharetra urna molestie non. Quisque tempus enim augue, vitae 48 | molestie ipsum pretium at. Donec non velit sed sem maximus suscipit. 49 | Curabitur non condimentum nisi, in mollis nibh. 50 |
51 | > 52 | ); 53 | 54 | export default RegularPage; 55 | -------------------------------------------------------------------------------- /src/styles/style.css: -------------------------------------------------------------------------------- 1 | html { 2 | font-size: 100%; 3 | font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, 4 | Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; 5 | -ms-text-size-adjust: 100%; 6 | -webkit-text-size-adjust: 100%; 7 | } 8 | body { 9 | margin: 0; 10 | } 11 | article, 12 | aside, 13 | details, 14 | figcaption, 15 | figure, 16 | footer, 17 | header, 18 | main, 19 | menu, 20 | nav, 21 | section, 22 | summary { 23 | display: block; 24 | } 25 | audio, 26 | canvas, 27 | progress, 28 | video { 29 | display: inline-block; 30 | } 31 | audio:not([controls]) { 32 | display: none; 33 | height: 0; 34 | } 35 | progress { 36 | vertical-align: baseline; 37 | } 38 | [hidden], 39 | template { 40 | display: none; 41 | } 42 | a { 43 | color: black; 44 | background-color: transparent; 45 | -webkit-text-decoration-skip: objects; 46 | } 47 | a:active, 48 | a:hover { 49 | outline-width: 0; 50 | } 51 | abbr[title] { 52 | border-bottom: none; 53 | text-decoration: underline; 54 | text-decoration: underline dotted; 55 | } 56 | b, 57 | strong { 58 | font-weight: inherit; 59 | font-weight: bolder; 60 | } 61 | dfn { 62 | font-style: italic; 63 | } 64 | h1 { 65 | font-size: 2em; 66 | margin: 0.67em 0; 67 | } 68 | mark { 69 | background-color: #ff0; 70 | color: #000; 71 | } 72 | small { 73 | font-size: 80%; 74 | } 75 | sub, 76 | sup { 77 | font-size: 75%; 78 | line-height: 0; 79 | position: relative; 80 | vertical-align: baseline; 81 | } 82 | sub { 83 | bottom: -0.25em; 84 | } 85 | sup { 86 | top: -0.5em; 87 | } 88 | img { 89 | border-style: none; 90 | } 91 | svg:not(:root) { 92 | overflow: hidden; 93 | } 94 | code, 95 | kbd, 96 | pre, 97 | samp { 98 | font-family: monospace, monospace; 99 | font-size: 1em; 100 | } 101 | figure { 102 | margin: 1em 40px; 103 | } 104 | hr { 105 | box-sizing: content-box; 106 | height: 0; 107 | overflow: visible; 108 | } 109 | button, 110 | input, 111 | optgroup, 112 | select, 113 | textarea { 114 | font: inherit; 115 | margin: 0; 116 | } 117 | optgroup { 118 | font-weight: 700; 119 | } 120 | button, 121 | input { 122 | overflow: visible; 123 | } 124 | button, 125 | select { 126 | text-transform: none; 127 | } 128 | [type="reset"], 129 | [type="submit"], 130 | button, 131 | html [type="button"] { 132 | -webkit-appearance: button; 133 | } 134 | [type="button"]::-moz-focus-inner, 135 | [type="reset"]::-moz-focus-inner, 136 | [type="submit"]::-moz-focus-inner, 137 | button::-moz-focus-inner { 138 | border-style: none; 139 | padding: 0; 140 | } 141 | [type="button"]:-moz-focusring, 142 | [type="reset"]:-moz-focusring, 143 | [type="submit"]:-moz-focusring, 144 | button:-moz-focusring { 145 | outline: 1px dotted ButtonText; 146 | } 147 | fieldset { 148 | border: 1px solid silver; 149 | margin: 0 2px; 150 | padding: 0.35em 0.625em 0.75em; 151 | } 152 | legend { 153 | box-sizing: border-box; 154 | color: inherit; 155 | display: table; 156 | max-width: 100%; 157 | padding: 0; 158 | white-space: normal; 159 | } 160 | textarea { 161 | overflow: auto; 162 | } 163 | [type="checkbox"], 164 | [type="radio"] { 165 | box-sizing: border-box; 166 | padding: 0; 167 | } 168 | [type="number"]::-webkit-inner-spin-button, 169 | [type="number"]::-webkit-outer-spin-button { 170 | height: auto; 171 | } 172 | [type="search"] { 173 | -webkit-appearance: textfield; 174 | outline-offset: -2px; 175 | } 176 | [type="search"]::-webkit-search-cancel-button, 177 | [type="search"]::-webkit-search-decoration { 178 | -webkit-appearance: none; 179 | } 180 | ::-webkit-input-placeholder { 181 | color: inherit; 182 | opacity: 0.54; 183 | } 184 | ::-webkit-file-upload-button { 185 | -webkit-appearance: button; 186 | font: inherit; 187 | } 188 | html { 189 | box-sizing: border-box; 190 | overflow-y: scroll; 191 | } 192 | * { 193 | box-sizing: inherit; 194 | } 195 | *:before { 196 | box-sizing: inherit; 197 | } 198 | *:after { 199 | box-sizing: inherit; 200 | } 201 | body { 202 | color: hsla(0, 0%, 0%, 0.8); 203 | font-weight: normal; 204 | word-wrap: break-word; 205 | font-kerning: normal; 206 | } 207 | img { 208 | max-width: 100%; 209 | margin-left: 0; 210 | margin-right: 0; 211 | margin-top: 0; 212 | padding-bottom: 0; 213 | padding-left: 0; 214 | padding-right: 0; 215 | padding-top: 0; 216 | margin-bottom: 1.45rem; 217 | } 218 | h1 { 219 | margin-left: 0; 220 | margin-right: 0; 221 | margin-top: 0; 222 | padding-bottom: 0; 223 | padding-left: 0; 224 | padding-right: 0; 225 | padding-top: 0; 226 | margin-bottom: 1.45rem; 227 | color: inherit; 228 | font-weight: bold; 229 | text-rendering: optimizeLegibility; 230 | font-size: 2.25rem; 231 | line-height: 1.1; 232 | } 233 | h2 { 234 | margin-left: 0; 235 | margin-right: 0; 236 | margin-top: 0; 237 | padding-bottom: 0; 238 | padding-left: 0; 239 | padding-right: 0; 240 | padding-top: 0; 241 | margin-bottom: 1.45rem; 242 | color: inherit; 243 | font-weight: bold; 244 | text-rendering: optimizeLegibility; 245 | font-size: 1.62671rem; 246 | line-height: 1.1; 247 | } 248 | h3 { 249 | margin-left: 0; 250 | margin-right: 0; 251 | margin-top: 0; 252 | padding-bottom: 0; 253 | padding-left: 0; 254 | padding-right: 0; 255 | padding-top: 0; 256 | margin-bottom: 1.45rem; 257 | color: inherit; 258 | 259 | font-weight: bold; 260 | text-rendering: optimizeLegibility; 261 | font-size: 1.38316rem; 262 | line-height: 1.1; 263 | } 264 | h4 { 265 | margin-left: 0; 266 | margin-right: 0; 267 | margin-top: 0; 268 | padding-bottom: 0; 269 | padding-left: 0; 270 | padding-right: 0; 271 | padding-top: 0; 272 | margin-bottom: 1.45rem; 273 | color: inherit; 274 | font-weight: bold; 275 | text-rendering: optimizeLegibility; 276 | font-size: 1rem; 277 | line-height: 1.1; 278 | } 279 | h5 { 280 | margin-left: 0; 281 | margin-right: 0; 282 | margin-top: 0; 283 | padding-bottom: 0; 284 | padding-left: 0; 285 | padding-right: 0; 286 | padding-top: 0; 287 | margin-bottom: 1.45rem; 288 | color: inherit; 289 | font-weight: bold; 290 | text-rendering: optimizeLegibility; 291 | font-size: 0.85028rem; 292 | line-height: 1.1; 293 | } 294 | h6 { 295 | margin-left: 0; 296 | margin-right: 0; 297 | margin-top: 0; 298 | padding-bottom: 0; 299 | padding-left: 0; 300 | padding-right: 0; 301 | padding-top: 0; 302 | margin-bottom: 1.45rem; 303 | color: inherit; 304 | font-weight: bold; 305 | text-rendering: optimizeLegibility; 306 | font-size: 0.78405rem; 307 | line-height: 1.1; 308 | } 309 | hgroup { 310 | margin-left: 0; 311 | margin-right: 0; 312 | margin-top: 0; 313 | padding-bottom: 0; 314 | padding-left: 0; 315 | padding-right: 0; 316 | padding-top: 0; 317 | margin-bottom: 1.45rem; 318 | } 319 | ul { 320 | margin-left: 1.45rem; 321 | margin-right: 0; 322 | margin-top: 0; 323 | padding-bottom: 0; 324 | padding-left: 0; 325 | padding-right: 0; 326 | padding-top: 0; 327 | margin-bottom: 1.45rem; 328 | list-style-position: outside; 329 | list-style-image: none; 330 | } 331 | ol { 332 | margin-left: 1.45rem; 333 | margin-right: 0; 334 | margin-top: 0; 335 | padding-bottom: 0; 336 | padding-left: 0; 337 | padding-right: 0; 338 | padding-top: 0; 339 | margin-bottom: 1.45rem; 340 | list-style-position: outside; 341 | list-style-image: none; 342 | } 343 | dl { 344 | margin-left: 0; 345 | margin-right: 0; 346 | margin-top: 0; 347 | padding-bottom: 0; 348 | padding-left: 0; 349 | padding-right: 0; 350 | padding-top: 0; 351 | margin-bottom: 1.45rem; 352 | } 353 | dd { 354 | margin-left: 0; 355 | margin-right: 0; 356 | margin-top: 0; 357 | padding-bottom: 0; 358 | padding-left: 0; 359 | padding-right: 0; 360 | padding-top: 0; 361 | margin-bottom: 1.45rem; 362 | } 363 | p { 364 | margin-left: 0; 365 | margin-right: 0; 366 | margin-top: 0; 367 | padding-bottom: 0; 368 | padding-left: 0; 369 | padding-right: 0; 370 | padding-top: 0; 371 | margin-bottom: 1.45rem; 372 | line-height: 1.45; 373 | } 374 | figure { 375 | margin-left: 0; 376 | margin-right: 0; 377 | margin-top: 0; 378 | padding-bottom: 0; 379 | padding-left: 0; 380 | padding-right: 0; 381 | padding-top: 0; 382 | margin-bottom: 1.45rem; 383 | } 384 | pre { 385 | margin-left: 0; 386 | margin-right: 0; 387 | margin-top: 0; 388 | padding-bottom: 0; 389 | padding-left: 0; 390 | padding-right: 0; 391 | padding-top: 0; 392 | margin-bottom: 1.45rem; 393 | font-size: 0.85rem; 394 | line-height: 1.42; 395 | background: hsla(0, 0%, 0%, 0.04); 396 | border-radius: 3px; 397 | overflow: auto; 398 | word-wrap: normal; 399 | padding: 1.45rem; 400 | } 401 | table { 402 | margin-left: 0; 403 | margin-right: 0; 404 | margin-top: 0; 405 | padding-bottom: 0; 406 | padding-left: 0; 407 | padding-right: 0; 408 | padding-top: 0; 409 | margin-bottom: 1.45rem; 410 | font-size: 1rem; 411 | line-height: 1.45rem; 412 | border-collapse: collapse; 413 | width: 100%; 414 | } 415 | fieldset { 416 | margin-left: 0; 417 | margin-right: 0; 418 | margin-top: 0; 419 | padding-bottom: 0; 420 | padding-left: 0; 421 | padding-right: 0; 422 | padding-top: 0; 423 | margin-bottom: 1.45rem; 424 | } 425 | blockquote { 426 | margin-left: 1.45rem; 427 | margin-right: 1.45rem; 428 | margin-top: 0; 429 | padding-bottom: 0; 430 | padding-left: 0; 431 | padding-right: 0; 432 | padding-top: 0; 433 | margin-bottom: 1.45rem; 434 | } 435 | form { 436 | margin-left: 0; 437 | margin-right: 0; 438 | margin-top: 0; 439 | padding-bottom: 0; 440 | padding-left: 0; 441 | padding-right: 0; 442 | padding-top: 0; 443 | margin-bottom: 1.45rem; 444 | } 445 | noscript { 446 | margin-left: 0; 447 | margin-right: 0; 448 | margin-top: 0; 449 | padding-bottom: 0; 450 | padding-left: 0; 451 | padding-right: 0; 452 | padding-top: 0; 453 | margin-bottom: 1.45rem; 454 | } 455 | iframe { 456 | margin-left: 0; 457 | margin-right: 0; 458 | margin-top: 0; 459 | padding-bottom: 0; 460 | padding-left: 0; 461 | padding-right: 0; 462 | padding-top: 0; 463 | margin-bottom: 1.45rem; 464 | } 465 | hr { 466 | margin-left: 0; 467 | margin-right: 0; 468 | margin-top: 0; 469 | padding-bottom: 0; 470 | padding-left: 0; 471 | padding-right: 0; 472 | padding-top: 0; 473 | margin-bottom: calc(1.45rem - 1px); 474 | background: hsla(0, 0%, 0%, 0.2); 475 | border: none; 476 | height: 1px; 477 | } 478 | address { 479 | margin-left: 0; 480 | margin-right: 0; 481 | margin-top: 0; 482 | padding-bottom: 0; 483 | padding-left: 0; 484 | padding-right: 0; 485 | padding-top: 0; 486 | margin-bottom: 1.45rem; 487 | } 488 | b { 489 | font-weight: bold; 490 | } 491 | strong { 492 | font-weight: bold; 493 | } 494 | dt { 495 | font-weight: bold; 496 | } 497 | th { 498 | font-weight: bold; 499 | } 500 | li { 501 | } 502 | ol li { 503 | padding-left: 0; 504 | } 505 | ul li { 506 | padding-left: 0; 507 | } 508 | li > ol { 509 | margin-left: 1.45rem; 510 | margin-bottom: calc(1.45rem / 2); 511 | margin-top: calc(1.45rem / 2); 512 | } 513 | li > ul { 514 | margin-left: 1.45rem; 515 | margin-bottom: calc(1.45rem / 2); 516 | margin-top: calc(1.45rem / 2); 517 | } 518 | blockquote *:last-child { 519 | margin-bottom: 0; 520 | } 521 | li *:last-child { 522 | margin-bottom: 0; 523 | } 524 | p *:last-child { 525 | margin-bottom: 0; 526 | } 527 | li > p { 528 | margin-bottom: calc(1.45rem / 2); 529 | } 530 | code { 531 | font-size: 0.85rem; 532 | line-height: 1.45rem; 533 | } 534 | kbd { 535 | font-size: 0.85rem; 536 | line-height: 1.45rem; 537 | } 538 | samp { 539 | font-size: 0.85rem; 540 | line-height: 1.45rem; 541 | } 542 | abbr { 543 | border-bottom: 1px dotted hsla(0, 0%, 0%, 0.5); 544 | cursor: help; 545 | } 546 | acronym { 547 | border-bottom: 1px dotted hsla(0, 0%, 0%, 0.5); 548 | cursor: help; 549 | } 550 | abbr[title] { 551 | border-bottom: 1px dotted hsla(0, 0%, 0%, 0.5); 552 | cursor: help; 553 | text-decoration: none; 554 | } 555 | thead { 556 | text-align: left; 557 | } 558 | td, 559 | th { 560 | text-align: left; 561 | border-bottom: 1px solid hsla(0, 0%, 0%, 0.12); 562 | font-feature-settings: "tnum"; 563 | -moz-font-feature-settings: "tnum"; 564 | -ms-font-feature-settings: "tnum"; 565 | -webkit-font-feature-settings: "tnum"; 566 | padding-left: 0.96667rem; 567 | padding-right: 0.96667rem; 568 | padding-top: 0.725rem; 569 | padding-bottom: calc(0.725rem - 1px); 570 | } 571 | th:first-child, 572 | td:first-child { 573 | padding-left: 0; 574 | } 575 | th:last-child, 576 | td:last-child { 577 | padding-right: 0; 578 | } 579 | tt, 580 | code { 581 | background-color: hsla(0, 0%, 0%, 0.04); 582 | border-radius: 3px; 583 | font-family: "SFMono-Regular", Consolas, "Roboto Mono", "Droid Sans Mono", 584 | "Liberation Mono", Menlo, Courier, monospace; 585 | padding: 0; 586 | padding-top: 0.2em; 587 | padding-bottom: 0.2em; 588 | } 589 | pre code { 590 | background: none; 591 | line-height: 1.42; 592 | } 593 | code:before, 594 | code:after, 595 | tt:before, 596 | tt:after { 597 | letter-spacing: -0.2em; 598 | content: " "; 599 | } 600 | pre code:before, 601 | pre code:after, 602 | pre tt:before, 603 | pre tt:after { 604 | content: ""; 605 | } 606 | @media only screen and (max-width: 480px) { 607 | html { 608 | font-size: 100%; 609 | } 610 | } 611 | --------------------------------------------------------------------------------