basic-animation.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "keyframe": {
  3. "cube": {
  4. "0": {
  5. "position": [-3, 0, 2]
  6. },
  7. "50": {
  8. "rotation": [0, 0, 0],
  9. "scale": [1, 1, 1]
  10. },
  11. "100": {
  12. "position": [3, 0, 2],
  13. "rotation": [0, 3.14, 0],
  14. "scale": [1.4, 1.4, 1.4]
  15. }
  16. },
  17. "sphere": {
  18. "0": {
  19. "position": [-3, 0, 0],
  20. "scale": [0.8, 0.8, 0.8]
  21. },
  22. "50": {
  23. "position": [0, 0.2, 0],
  24. "scale": [1, 1, 1]
  25. },
  26. "100": {
  27. "position": [3, 0, 0],
  28. "scale": [0.8, 0.8, 0.8]
  29. }
  30. },
  31. "cylinder": {
  32. "0": {
  33. "position": [-3, 0, -2],
  34. "rotation": [0, 0, 0]
  35. },
  36. "50": {
  37. "rotation": [0, 0, -3.14]
  38. },
  39. "100": {
  40. "position": [3, 0, -2],
  41. "rotation": [0, 0, 3.14]
  42. }
  43. },
  44. "plane": {
  45. "0": {
  46. "material.u_baseColorFactor": [0.48, 0.78, 0.64, 1]
  47. },
  48. "50": {
  49. "material.u_baseColorFactor": [0.368, 0.937, 0.176, 1]
  50. },
  51. "100": {
  52. "material.u_baseColorFactor": [0.176, 0.368, 0.937, 1]
  53. }
  54. },
  55. "spotLight": {
  56. "0": {
  57. "position": [-4, 1, -4]
  58. },
  59. "25": {
  60. "position": [-4.3, 0.5, -2]
  61. },
  62. "75": {
  63. "position": [-3, 1.5, 2]
  64. },
  65. "100": {
  66. "position": [-4, 1, 4]
  67. }
  68. }
  69. },
  70. "animation": {
  71. "default": {
  72. "keyframe": "cube",
  73. "duration": 1,
  74. "ease": "ease-in-out",
  75. "loop": 400000,
  76. "delay": 1,
  77. "direction": "both"
  78. },
  79. "sphere": {
  80. "keyframe": "sphere",
  81. "duration": 1,
  82. "ease": "ease-out",
  83. "loop": 400000,
  84. "delay": 1,
  85. "direction": "both"
  86. },
  87. "cylinder": {
  88. "keyframe": "cylinder",
  89. "duration": 1,
  90. "ease": "ease-in",
  91. "loop": 400000,
  92. "delay": 1,
  93. "direction": "both"
  94. },
  95. "plane": {
  96. "keyframe": "plane",
  97. "duration": 4,
  98. "ease": "linear",
  99. "loop": 400000,
  100. "delay": 1,
  101. "direction": "both"
  102. },
  103. "spotLight": {
  104. "keyframe": "spotLight",
  105. "duration": 2,
  106. "ease": "ease-in-out",
  107. "loop": 400000,
  108. "delay": 1,
  109. "direction": "both"
  110. }
  111. }
  112. }