Logo.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <div class="VueToNuxtLogo">
  3. <div class="Triangle Triangle--two"/>
  4. <div class="Triangle Triangle--one"/>
  5. <div class="Triangle Triangle--three"/>
  6. <div class="Triangle Triangle--four"/>
  7. </div>
  8. </template>
  9. <style>
  10. .VueToNuxtLogo {
  11. display: inline-block;
  12. animation: turn 2s linear forwards 1s;
  13. transform: rotateX(180deg);
  14. position: relative;
  15. overflow: hidden;
  16. height: 180px;
  17. width: 245px;
  18. }
  19. .Triangle {
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. width: 0;
  24. height: 0;
  25. }
  26. .Triangle--one {
  27. border-left: 105px solid transparent;
  28. border-right: 105px solid transparent;
  29. border-bottom: 180px solid #41b883;
  30. }
  31. .Triangle--two {
  32. top: 30px;
  33. left: 35px;
  34. animation: goright 0.5s linear forwards 3.5s;
  35. border-left: 87.5px solid transparent;
  36. border-right: 87.5px solid transparent;
  37. border-bottom: 150px solid #3b8070;
  38. }
  39. .Triangle--three {
  40. top: 60px;
  41. left: 35px;
  42. animation: goright 0.5s linear forwards 3.5s;
  43. border-left: 70px solid transparent;
  44. border-right: 70px solid transparent;
  45. border-bottom: 120px solid #35495e;
  46. }
  47. .Triangle--four {
  48. top: 120px;
  49. left: 70px;
  50. animation: godown 0.5s linear forwards 3s;
  51. border-left: 35px solid transparent;
  52. border-right: 35px solid transparent;
  53. border-bottom: 60px solid #fff;
  54. }
  55. @keyframes turn {
  56. 100% {
  57. transform: rotateX(0deg);
  58. }
  59. }
  60. @keyframes godown {
  61. 100% {
  62. top: 180px;
  63. }
  64. }
  65. @keyframes goright {
  66. 100% {
  67. left: 70px;
  68. }
  69. }
  70. </style>