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.

134 lines
2.5 KiB

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