You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
2.5 KiB

8 years ago
  1. html,
  2. body,
  3. article {
  4. font-family: 'Geostar Fill', sans-serif;
  5. background-color: #000082;
  6. }
  7. .glitch {
  8. position: relative;
  9. line-height: 1;
  10. font-weight: 700;
  11. -webkit-transform: translate(-50%, -50%);
  12. transform: translate(-50%, -50%);
  13. text-decoration: none;
  14. color: #fff;
  15. }
  16. .glitch:before, .glitch:after {
  17. display: block;
  18. content: '/n(j)uː/ tokyo';
  19. position: absolute;
  20. top: 0;
  21. left: 0;
  22. height: 100%;
  23. width: 100%;
  24. opacity: .8;
  25. }
  26. .glitch:after {
  27. color: #f0f;
  28. z-index: -2;
  29. }
  30. .glitch:before {
  31. color: #0ff;
  32. z-index: -1;
  33. }
  34. .glitch:not(:hover):before {
  35. -webkit-animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  36. animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  37. }
  38. .glitch:not(:hover):after {
  39. -webkit-animation: glitch 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  40. animation: glitch 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  41. }
  42. @-webkit-keyframes glitch {
  43. 0% {
  44. -webkit-transform: translate(0);
  45. transform: translate(0);
  46. }
  47. 20% {
  48. -webkit-transform: translate(-5px, 5px);
  49. transform: translate(-5px, 5px);
  50. }
  51. 40% {
  52. -webkit-transform: translate(-5px, -5px);
  53. transform: translate(-5px, -5px);
  54. }
  55. 60% {
  56. -webkit-transform: translate(5px, 5px);
  57. transform: translate(5px, 5px);
  58. }
  59. 80% {
  60. -webkit-transform: translate(5px, -5px);
  61. transform: translate(5px, -5px);
  62. }
  63. to {
  64. -webkit-transform: translate(0);
  65. transform: translate(0);
  66. }
  67. }
  68. @keyframes glitch {
  69. 0% {
  70. -webkit-transform: translate(0);
  71. transform: translate(0);
  72. }
  73. 20% {
  74. -webkit-transform: translate(-5px, 5px);
  75. transform: translate(-5px, 5px);
  76. }
  77. 40% {
  78. -webkit-transform: translate(-5px, -5px);
  79. transform: translate(-5px, -5px);
  80. }
  81. 60% {
  82. -webkit-transform: translate(5px, 5px);
  83. transform: translate(5px, 5px);
  84. }
  85. 80% {
  86. -webkit-transform: translate(5px, -5px);
  87. transform: translate(5px, -5px);
  88. }
  89. to {
  90. -webkit-transform: translate(0);
  91. transform: translate(0);
  92. }
  93. }
  94. article {
  95. font-size: 28px;
  96. color: #fff;
  97. width: 100vw;
  98. height: 100vh;
  99. background-image: url(skyline.png);
  100. background-position: 50% 0;
  101. display: flex;
  102. flex-direction: row;
  103. align-items: center;
  104. justify-content: center;
  105. }
  106. dt {
  107. cursor: default;
  108. margin-bottom: 1em;
  109. }
  110. dd::before {
  111. content: "*";
  112. opacity: 0;
  113. color: #349EFF;
  114. }
  115. dd:hover::before {
  116. opacity: 1;
  117. }
  118. article a {
  119. color: inherit;
  120. }