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.

120 lines
2.9 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8'>
  5. <meta http-equiv='X-UA-Compatible' content='IE=edge'>
  6. <title>Hathieves.es</title>
  7. <meta name='viewport' content='width=device-width, initial-scale=1'>
  8. <style>
  9. body{
  10. background-color: black;
  11. margin: 0;
  12. padding: 0;
  13. width: 100vw;
  14. height: 100vh;
  15. display: flex;
  16. justify-content: center;
  17. align-items: center;
  18. }
  19. .logo{
  20. width: 250px;
  21. height: 250px;
  22. box-shadow: 0px 0px 0px 2px rgba(255,255,255,1);
  23. background: url("cropped-ht.png");
  24. opacity: 0;
  25. overflow: hidden;
  26. }
  27. .logo2:before
  28. {
  29. content: '';
  30. position: absolute;
  31. width: 250px;
  32. height: 250px;
  33. background: url("cropped-ht.png");
  34. opacity: .5;
  35. mix-blend-mode: hard-light;
  36. animation: animate .2s linear infinite;
  37. }
  38. @keyframes animate
  39. {
  40. 0%
  41. {
  42. background-position: 0 0;
  43. filter: hue-rotate(0deg);
  44. }
  45. 10%
  46. {
  47. background-position: 5px 0;
  48. }
  49. 20%
  50. {
  51. background-position: 0 -5px;
  52. }
  53. 30%
  54. {
  55. background-position: 15px 0;
  56. }
  57. 40%
  58. {
  59. background-position: 0 -5px;
  60. }
  61. 50%
  62. {
  63. background-position: -25px 0;
  64. }
  65. 60%
  66. {
  67. background-position: 40px 20px;
  68. }
  69. 70%
  70. {
  71. background-position: 0 -20px;
  72. }
  73. 80%
  74. {
  75. background-position: -60px -20px;
  76. }
  77. 81%
  78. {
  79. background-position: 0 0;
  80. }
  81. 100%
  82. {
  83. background-position: 0 0;
  84. filter: hue-rotate(360deg);
  85. }
  86. }
  87. </style>
  88. <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
  89. <script>
  90. $(document).ready(function(){
  91. sound = new Audio('sound.mp3');
  92. sound.volume = 0.1;
  93. $(".logo").animate({
  94. opacity: '1'
  95. }, 1500);
  96. setTimeout(function(){
  97. $(".logo").addClass("logo2")
  98. sound.play()
  99. },2000);
  100. setTimeout(function(){
  101. $(".logo").removeClass("logo2")
  102. sound.pause();
  103. },3000);
  104. setTimeout(function(){
  105. $(".logo").animate({
  106. opacity: '0'
  107. }, 1500);
  108. },3000);
  109. });
  110. </script>
  111. </head>
  112. <body>
  113. <div class="logo"></div>
  114. </body>
  115. </html>