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.

137 lines
2.6 KiB

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