Logo.vue 1.3 KB

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