welcome.css 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. body {
  2. display: flex;
  3. height: 100vh;
  4. justify-content: center;
  5. align-items: center;
  6. text-align: center;
  7. background: #222;
  8. }
  9. .reveal {
  10. position: relative;
  11. display: flex;
  12. color: #6ee1f5;
  13. font-size: 2em;
  14. font-family: Raleway, sans-serif;
  15. letter-spacing: 3px;
  16. text-transform: uppercase;
  17. white-space: pre;
  18. }
  19. .reveal span {
  20. opacity: 0;
  21. transform: scale(0);
  22. animation: fadeIn 2.4s forwards;
  23. }
  24. .reveal::before, .reveal::after {
  25. position: absolute;
  26. content: "";
  27. top: 0;
  28. bottom: 0;
  29. width: 2px;
  30. height: 100%;
  31. background: white;
  32. opacity: 0;
  33. transform: scale(0);
  34. }
  35. .reveal::before {
  36. left: 50%;
  37. animation: slideLeft 1.5s cubic-bezier(0.7, -0.6, 0.3, 1.5) forwards;
  38. }
  39. .reveal::after {
  40. right: 50%;
  41. animation: slideRight 1.5s cubic-bezier(0.7, -0.6, 0.3, 1.5) forwards;
  42. }
  43. @keyframes fadeIn {
  44. to {
  45. opacity: 1;
  46. transform: scale(1);
  47. }
  48. }
  49. @keyframes slideLeft {
  50. to {
  51. left: -6%;
  52. opacity: 1;
  53. transform: scale(0.9);
  54. }
  55. }
  56. @keyframes slideRight {
  57. to {
  58. right: -6%;
  59. opacity: 1;
  60. transform: scale(0.9);
  61. }
  62. }
  63. pre {
  64. outline: 1px solid #ccc;
  65. padding: 5px;
  66. margin: 5px;
  67. }
  68. .string {
  69. color: green;
  70. }
  71. .number {
  72. color: darkorange;
  73. }
  74. .boolean {
  75. color: blue;
  76. }
  77. .null {
  78. color: magenta;
  79. }
  80. .key {
  81. color: red;
  82. }