@nanoporetech-digital/components 6.0.1 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/cjs/index-14451c95.js +6 -2
  3. package/dist/cjs/index-browser.cjs-d4554470.js +39 -0
  4. package/dist/cjs/index-browser.cjs-d4554470.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/nano-algolia.cjs.entry.js +6 -1
  7. package/dist/cjs/nano-algolia.cjs.entry.js.map +1 -1
  8. package/dist/cjs/nano-animation.cjs.entry.js +1209 -0
  9. package/dist/cjs/nano-animation.cjs.entry.js.map +1 -0
  10. package/dist/cjs/nano-components.cjs.js +1 -1
  11. package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/nano-global-nav.cjs.entry.js +24 -25
  13. package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
  14. package/dist/cjs/nano-global-search-results.cjs.entry.js +51 -27
  15. package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
  16. package/dist/cjs/nano-hero.cjs.entry.js +1 -1
  17. package/dist/cjs/nano-hero.cjs.entry.js.map +1 -1
  18. package/dist/cjs/nano-intersection-observe.cjs.entry.js +131 -0
  19. package/dist/cjs/nano-intersection-observe.cjs.entry.js.map +1 -0
  20. package/dist/cjs/nano-resize-observe_2.cjs.entry.js +1 -1
  21. package/dist/cjs/nano-resize-observe_2.cjs.entry.js.map +1 -1
  22. package/dist/cjs/nano-sticker.cjs.entry.js +2 -27
  23. package/dist/cjs/nano-sticker.cjs.entry.js.map +1 -1
  24. package/dist/cjs/{nano-table-400049cc.js → nano-table-06530d49.js} +5 -25
  25. package/dist/cjs/nano-table-06530d49.js.map +1 -0
  26. package/dist/cjs/nano-table.cjs.entry.js +2 -1
  27. package/dist/cjs/nano-table.cjs.entry.js.map +1 -1
  28. package/dist/cjs/scroll-parent-87393de2.js +31 -0
  29. package/dist/cjs/scroll-parent-87393de2.js.map +1 -0
  30. package/dist/cjs/search-insights-b2bb12bd.js +50 -0
  31. package/dist/cjs/search-insights-b2bb12bd.js.map +1 -0
  32. package/dist/cjs/{table.worker-a37f8365.js → table.worker-b4922b9b.js} +3 -2
  33. package/dist/cjs/table.worker-b4922b9b.js.map +1 -0
  34. package/dist/collection/collection-manifest.json +2 -1
  35. package/dist/collection/components/algolia/algolia-interface.js.map +1 -1
  36. package/dist/collection/components/algolia/algolia.js +8 -3
  37. package/dist/collection/components/algolia/algolia.js.map +1 -1
  38. package/dist/collection/components/animation/animation.js +547 -0
  39. package/dist/collection/components/animation/animation.js.map +1 -0
  40. package/dist/collection/components/animation/animations/attention_seekers/bounce.js +43 -0
  41. package/dist/collection/components/animation/animations/attention_seekers/flash.js +7 -0
  42. package/dist/collection/components/animation/animations/attention_seekers/headShake.js +8 -0
  43. package/dist/collection/components/animation/animations/attention_seekers/heartBeat.js +7 -0
  44. package/dist/collection/components/animation/animations/attention_seekers/jello.js +15 -0
  45. package/dist/collection/components/animation/animations/attention_seekers/pulse.js +5 -0
  46. package/dist/collection/components/animation/animations/attention_seekers/rubberBand.js +9 -0
  47. package/dist/collection/components/animation/animations/attention_seekers/shake.js +13 -0
  48. package/dist/collection/components/animation/animations/attention_seekers/shakeX.js +13 -0
  49. package/dist/collection/components/animation/animations/attention_seekers/shakeY.js +13 -0
  50. package/dist/collection/components/animation/animations/attention_seekers/swing.js +7 -0
  51. package/dist/collection/components/animation/animations/attention_seekers/tada.js +13 -0
  52. package/dist/collection/components/animation/animations/attention_seekers/wobble.js +18 -0
  53. package/dist/collection/components/animation/animations/back_entrances/backInDown.js +5 -0
  54. package/dist/collection/components/animation/animations/back_entrances/backInLeft.js +5 -0
  55. package/dist/collection/components/animation/animations/back_entrances/backInRight.js +5 -0
  56. package/dist/collection/components/animation/animations/back_entrances/backInUp.js +5 -0
  57. package/dist/collection/components/animation/animations/back_exits/backOutDown.js +5 -0
  58. package/dist/collection/components/animation/animations/back_exits/backOutLeft.js +5 -0
  59. package/dist/collection/components/animation/animations/back_exits/backOutRight.js +5 -0
  60. package/dist/collection/components/animation/animations/back_exits/backOutUp.js +5 -0
  61. package/dist/collection/components/animation/animations/bouncing_entrances/bounceIn.js +14 -0
  62. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInDown.js +20 -0
  63. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInLeft.js +16 -0
  64. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInRight.js +16 -0
  65. package/dist/collection/components/animation/animations/bouncing_entrances/bounceInUp.js +16 -0
  66. package/dist/collection/components/animation/animations/bouncing_exits/bounceOut.js +6 -0
  67. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutDown.js +14 -0
  68. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutLeft.js +12 -0
  69. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutRight.js +8 -0
  70. package/dist/collection/components/animation/animations/bouncing_exits/bounceOutUp.js +18 -0
  71. package/dist/collection/components/animation/animations/easings/easings.js +35 -0
  72. package/dist/collection/components/animation/animations/easings/easings.js.map +1 -0
  73. package/dist/collection/components/animation/animations/fading_entrances/fadeIn.js +4 -0
  74. package/dist/collection/components/animation/animations/fading_entrances/fadeInBottomLeft.js +4 -0
  75. package/dist/collection/components/animation/animations/fading_entrances/fadeInBottomRight.js +4 -0
  76. package/dist/collection/components/animation/animations/fading_entrances/fadeInDown.js +4 -0
  77. package/dist/collection/components/animation/animations/fading_entrances/fadeInDownBig.js +4 -0
  78. package/dist/collection/components/animation/animations/fading_entrances/fadeInLeft.js +4 -0
  79. package/dist/collection/components/animation/animations/fading_entrances/fadeInLeftBig.js +4 -0
  80. package/dist/collection/components/animation/animations/fading_entrances/fadeInRight.js +4 -0
  81. package/dist/collection/components/animation/animations/fading_entrances/fadeInRightBig.js +4 -0
  82. package/dist/collection/components/animation/animations/fading_entrances/fadeInTopLeft.js +4 -0
  83. package/dist/collection/components/animation/animations/fading_entrances/fadeInTopRight.js +4 -0
  84. package/dist/collection/components/animation/animations/fading_entrances/fadeInUp.js +4 -0
  85. package/dist/collection/components/animation/animations/fading_entrances/fadeInUpBig.js +4 -0
  86. package/dist/collection/components/animation/animations/fading_exits/fadeOut.js +4 -0
  87. package/dist/collection/components/animation/animations/fading_exits/fadeOutBottomLeft.js +4 -0
  88. package/dist/collection/components/animation/animations/fading_exits/fadeOutBottomRight.js +4 -0
  89. package/dist/collection/components/animation/animations/fading_exits/fadeOutDown.js +4 -0
  90. package/dist/collection/components/animation/animations/fading_exits/fadeOutDownBig.js +4 -0
  91. package/dist/collection/components/animation/animations/fading_exits/fadeOutLeft.js +4 -0
  92. package/dist/collection/components/animation/animations/fading_exits/fadeOutLeftBig.js +4 -0
  93. package/dist/collection/components/animation/animations/fading_exits/fadeOutRight.js +4 -0
  94. package/dist/collection/components/animation/animations/fading_exits/fadeOutRightBig.js +4 -0
  95. package/dist/collection/components/animation/animations/fading_exits/fadeOutTopLeft.js +4 -0
  96. package/dist/collection/components/animation/animations/fading_exits/fadeOutTopRight.js +4 -0
  97. package/dist/collection/components/animation/animations/fading_exits/fadeOutUp.js +4 -0
  98. package/dist/collection/components/animation/animations/fading_exits/fadeOutUpBig.js +4 -0
  99. package/dist/collection/components/animation/animations/flippers/flip.js +32 -0
  100. package/dist/collection/components/animation/animations/flippers/flipInX.js +20 -0
  101. package/dist/collection/components/animation/animations/flippers/flipInY.js +20 -0
  102. package/dist/collection/components/animation/animations/flippers/flipOutX.js +13 -0
  103. package/dist/collection/components/animation/animations/flippers/flipOutY.js +13 -0
  104. package/dist/collection/components/animation/animations/index.js +203 -0
  105. package/dist/collection/components/animation/animations/index.js.map +1 -0
  106. package/dist/collection/components/animation/animations/lightspeed/lightSpeedInLeft.js +10 -0
  107. package/dist/collection/components/animation/animations/lightspeed/lightSpeedInRight.js +10 -0
  108. package/dist/collection/components/animation/animations/lightspeed/lightSpeedOutLeft.js +8 -0
  109. package/dist/collection/components/animation/animations/lightspeed/lightSpeedOutRight.js +8 -0
  110. package/dist/collection/components/animation/animations/rotating_entrances/rotateIn.js +4 -0
  111. package/dist/collection/components/animation/animations/rotating_entrances/rotateInDownLeft.js +4 -0
  112. package/dist/collection/components/animation/animations/rotating_entrances/rotateInDownRight.js +4 -0
  113. package/dist/collection/components/animation/animations/rotating_entrances/rotateInUpLeft.js +4 -0
  114. package/dist/collection/components/animation/animations/rotating_entrances/rotateInUpRight.js +4 -0
  115. package/dist/collection/components/animation/animations/rotating_exits/rotateOut.js +4 -0
  116. package/dist/collection/components/animation/animations/rotating_exits/rotateOutDownLeft.js +4 -0
  117. package/dist/collection/components/animation/animations/rotating_exits/rotateOutDownRight.js +4 -0
  118. package/dist/collection/components/animation/animations/rotating_exits/rotateOutUpLeft.js +4 -0
  119. package/dist/collection/components/animation/animations/rotating_exits/rotateOutUpRight.js +4 -0
  120. package/dist/collection/components/animation/animations/sliding_entrances/slideInDown.js +4 -0
  121. package/dist/collection/components/animation/animations/sliding_entrances/slideInLeft.js +4 -0
  122. package/dist/collection/components/animation/animations/sliding_entrances/slideInRight.js +4 -0
  123. package/dist/collection/components/animation/animations/sliding_entrances/slideInUp.js +4 -0
  124. package/dist/collection/components/animation/animations/sliding_exits/slideOutDown.js +4 -0
  125. package/dist/collection/components/animation/animations/sliding_exits/slideOutLeft.js +4 -0
  126. package/dist/collection/components/animation/animations/sliding_exits/slideOutRight.js +4 -0
  127. package/dist/collection/components/animation/animations/sliding_exits/slideOutUp.js +4 -0
  128. package/dist/collection/components/animation/animations/specials/hinge.js +18 -0
  129. package/dist/collection/components/animation/animations/specials/jackInTheBox.js +11 -0
  130. package/dist/collection/components/animation/animations/specials/rollIn.js +8 -0
  131. package/dist/collection/components/animation/animations/specials/rollOut.js +8 -0
  132. package/dist/collection/components/animation/animations/zooming_entrances/zoomIn.js +4 -0
  133. package/dist/collection/components/animation/animations/zooming_entrances/zoomInDown.js +14 -0
  134. package/dist/collection/components/animation/animations/zooming_entrances/zoomInLeft.js +14 -0
  135. package/dist/collection/components/animation/animations/zooming_entrances/zoomInRight.js +14 -0
  136. package/dist/collection/components/animation/animations/zooming_entrances/zoomInUp.js +14 -0
  137. package/dist/collection/components/animation/animations/zooming_exits/zoomOut.js +5 -0
  138. package/dist/collection/components/animation/animations/zooming_exits/zoomOutDown.js +14 -0
  139. package/dist/collection/components/animation/animations/zooming_exits/zoomOutLeft.js +12 -0
  140. package/dist/collection/components/animation/animations/zooming_exits/zoomOutRight.js +12 -0
  141. package/dist/collection/components/animation/animations/zooming_exits/zoomOutUp.js +14 -0
  142. package/dist/collection/components/global-nav/global-nav-interface.js.map +1 -1
  143. package/dist/collection/components/global-nav/global-nav.js +25 -25
  144. package/dist/collection/components/global-nav/global-nav.js.map +1 -1
  145. package/dist/collection/components/global-search-results/global-search-results.js +51 -27
  146. package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
  147. package/dist/collection/components/hero/hero.css +0 -1
  148. package/dist/collection/components/intersection-observe/intersection-observe.js +256 -0
  149. package/dist/collection/components/intersection-observe/intersection-observe.js.map +1 -0
  150. package/dist/collection/components/resize-observe/resize-observe.js +1 -1
  151. package/dist/collection/components/resize-observe/resize-observe.js.map +1 -1
  152. package/dist/collection/components/select/select.js +5 -5
  153. package/dist/collection/components/select/select.js.map +1 -1
  154. package/dist/collection/components/sticker/sticker.js +2 -27
  155. package/dist/collection/components/sticker/sticker.js.map +1 -1
  156. package/dist/collection/components/table/table.js +2 -1
  157. package/dist/collection/components/table/table.js.map +1 -1
  158. package/dist/collection/components/table/table.utils.js +0 -21
  159. package/dist/collection/components/table/table.utils.js.map +1 -1
  160. package/dist/collection/utils/scroll-parent.js +26 -0
  161. package/dist/collection/utils/scroll-parent.js.map +1 -0
  162. package/dist/collection/utils/search-insights.js +46 -0
  163. package/dist/collection/utils/search-insights.js.map +1 -0
  164. package/dist/components/algolia.js +6 -1
  165. package/dist/components/algolia.js.map +1 -1
  166. package/dist/components/index-browser.cjs.js +37 -0
  167. package/dist/components/index-browser.cjs.js.map +1 -0
  168. package/dist/components/index.d.ts +2 -1
  169. package/dist/components/index.js +2 -1
  170. package/dist/components/index.js.map +1 -1
  171. package/dist/components/{nano-aspect-ratio.d.ts → nano-animation.d.ts} +4 -4
  172. package/dist/components/nano-animation.js +1239 -0
  173. package/dist/components/nano-animation.js.map +1 -0
  174. package/dist/components/nano-global-nav.js +24 -25
  175. package/dist/components/nano-global-nav.js.map +1 -1
  176. package/dist/components/nano-global-search-results.js +51 -27
  177. package/dist/components/nano-global-search-results.js.map +1 -1
  178. package/dist/components/nano-hero.js +1 -1
  179. package/dist/components/nano-hero.js.map +1 -1
  180. package/dist/components/nano-intersection-observe.d.ts +11 -0
  181. package/dist/components/nano-intersection-observe.js +149 -0
  182. package/dist/components/nano-intersection-observe.js.map +1 -0
  183. package/dist/components/resize-observe.js +1 -1
  184. package/dist/components/resize-observe.js.map +1 -1
  185. package/dist/components/scroll-parent.js +29 -0
  186. package/dist/components/scroll-parent.js.map +1 -0
  187. package/dist/components/search-insights.js +48 -0
  188. package/dist/components/search-insights.js.map +1 -0
  189. package/dist/components/select.js.map +1 -1
  190. package/dist/components/sticker.js +2 -27
  191. package/dist/components/sticker.js.map +1 -1
  192. package/dist/components/table.js +1 -21
  193. package/dist/components/table.js.map +1 -1
  194. package/dist/esm/index-9695db0a.js +6 -2
  195. package/dist/esm/index-browser.cjs-bf702094.js +37 -0
  196. package/dist/esm/index-browser.cjs-bf702094.js.map +1 -0
  197. package/dist/esm/loader.js +1 -1
  198. package/dist/esm/nano-algolia.entry.js +6 -1
  199. package/dist/esm/nano-algolia.entry.js.map +1 -1
  200. package/dist/esm/nano-animation.entry.js +1205 -0
  201. package/dist/esm/nano-animation.entry.js.map +1 -0
  202. package/dist/esm/nano-components.js +1 -1
  203. package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +1 -1
  204. package/dist/esm/nano-global-nav.entry.js +24 -25
  205. package/dist/esm/nano-global-nav.entry.js.map +1 -1
  206. package/dist/esm/nano-global-search-results.entry.js +51 -27
  207. package/dist/esm/nano-global-search-results.entry.js.map +1 -1
  208. package/dist/esm/nano-hero.entry.js +1 -1
  209. package/dist/esm/nano-hero.entry.js.map +1 -1
  210. package/dist/esm/nano-intersection-observe.entry.js +127 -0
  211. package/dist/esm/nano-intersection-observe.entry.js.map +1 -0
  212. package/dist/esm/nano-resize-observe_2.entry.js +1 -1
  213. package/dist/esm/nano-resize-observe_2.entry.js.map +1 -1
  214. package/dist/esm/nano-sticker.entry.js +2 -27
  215. package/dist/esm/nano-sticker.entry.js.map +1 -1
  216. package/dist/esm/{nano-table-a6641aef.js → nano-table-c85a2fd3.js} +3 -23
  217. package/dist/esm/nano-table-c85a2fd3.js.map +1 -0
  218. package/dist/esm/nano-table.entry.js +2 -1
  219. package/dist/esm/nano-table.entry.js.map +1 -1
  220. package/dist/esm/scroll-parent-bab1cbf7.js +29 -0
  221. package/dist/esm/scroll-parent-bab1cbf7.js.map +1 -0
  222. package/dist/esm/search-insights-f64a6b4c.js +48 -0
  223. package/dist/esm/search-insights-f64a6b4c.js.map +1 -0
  224. package/dist/esm/{table.worker-6b597e20.js → table.worker-761fba3e.js} +3 -2
  225. package/dist/esm/table.worker-761fba3e.js.map +1 -0
  226. package/dist/nano-components/index-browser.cjs-bf702094.js +5 -0
  227. package/dist/nano-components/index-browser.cjs-bf702094.js.map +1 -0
  228. package/dist/nano-components/nano-algolia.entry.js +1 -1
  229. package/dist/nano-components/nano-algolia.entry.js.map +1 -1
  230. package/dist/nano-components/nano-animation.entry.js +5 -0
  231. package/dist/nano-components/nano-animation.entry.js.map +1 -0
  232. package/dist/nano-components/nano-components.css +1 -1
  233. package/dist/nano-components/nano-components.esm.js +1 -1
  234. package/dist/nano-components/nano-components.esm.js.map +1 -1
  235. package/dist/nano-components/nano-global-nav-user-profile_3.entry.js.map +1 -1
  236. package/dist/nano-components/nano-global-nav.entry.js +1 -1
  237. package/dist/nano-components/nano-global-nav.entry.js.map +1 -1
  238. package/dist/nano-components/nano-global-search-results.entry.js +1 -1
  239. package/dist/nano-components/nano-global-search-results.entry.js.map +1 -1
  240. package/dist/nano-components/nano-hero.entry.js +1 -1
  241. package/dist/nano-components/nano-hero.entry.js.map +1 -1
  242. package/dist/nano-components/nano-intersection-observe.entry.js +5 -0
  243. package/dist/nano-components/nano-intersection-observe.entry.js.map +1 -0
  244. package/dist/nano-components/nano-resize-observe_2.entry.js +1 -1
  245. package/dist/nano-components/nano-resize-observe_2.entry.js.map +1 -1
  246. package/dist/nano-components/nano-sticker.entry.js +1 -1
  247. package/dist/nano-components/nano-sticker.entry.js.map +1 -1
  248. package/dist/nano-components/nano-table-c85a2fd3.js +5 -0
  249. package/dist/nano-components/nano-table-c85a2fd3.js.map +1 -0
  250. package/dist/nano-components/nano-table.entry.js +1 -1
  251. package/dist/nano-components/scroll-parent-bab1cbf7.js +5 -0
  252. package/dist/nano-components/scroll-parent-bab1cbf7.js.map +1 -0
  253. package/dist/nano-components/search-insights-f64a6b4c.js +5 -0
  254. package/dist/nano-components/search-insights-f64a6b4c.js.map +1 -0
  255. package/dist/nano-components/table.worker-761fba3e.js +5 -0
  256. package/dist/types/components/algolia/algolia-interface.d.ts +2 -1
  257. package/dist/types/components/algolia/algolia.d.ts +7 -1
  258. package/dist/types/components/animation/animation.d.ts +74 -0
  259. package/dist/types/components/animation/animations/easings/easings.d.ts +31 -0
  260. package/dist/types/components/animation/animations/index.d.ts +101 -0
  261. package/dist/types/components/global-nav/global-nav-interface.d.ts +1 -0
  262. package/dist/types/components/global-nav/global-nav.d.ts +2 -6
  263. package/dist/types/components/global-search-results/global-search-results.d.ts +13 -7
  264. package/dist/types/components/intersection-observe/intersection-observe.d.ts +45 -0
  265. package/dist/types/components/select/select.d.ts +2 -4
  266. package/dist/types/components/sticker/sticker.d.ts +0 -5
  267. package/dist/types/components/table/table.utils.d.ts +0 -6
  268. package/dist/types/components.d.ts +213 -43
  269. package/dist/types/interface.d.ts +7 -2
  270. package/dist/types/utils/scroll-parent.d.ts +6 -0
  271. package/dist/types/utils/search-insights.d.ts +22 -0
  272. package/docs-json.json +1031 -117
  273. package/docs-vscode.json +488 -8
  274. package/hydrate/index.js +1636 -249
  275. package/package.json +3 -2
  276. package/dist/cjs/nano-aspect-ratio.cjs.entry.js +0 -53
  277. package/dist/cjs/nano-aspect-ratio.cjs.entry.js.map +0 -1
  278. package/dist/cjs/nano-table-400049cc.js.map +0 -1
  279. package/dist/cjs/table.worker-a37f8365.js.map +0 -1
  280. package/dist/collection/components/aspect-ratio/aspect-ratio.css +0 -38
  281. package/dist/collection/components/aspect-ratio/aspect-ratio.js +0 -106
  282. package/dist/collection/components/aspect-ratio/aspect-ratio.js.map +0 -1
  283. package/dist/components/nano-aspect-ratio.js +0 -70
  284. package/dist/components/nano-aspect-ratio.js.map +0 -1
  285. package/dist/esm/nano-aspect-ratio.entry.js +0 -49
  286. package/dist/esm/nano-aspect-ratio.entry.js.map +0 -1
  287. package/dist/esm/nano-table-a6641aef.js.map +0 -1
  288. package/dist/esm/table.worker-6b597e20.js.map +0 -1
  289. package/dist/nano-components/nano-aspect-ratio.entry.js +0 -5
  290. package/dist/nano-components/nano-aspect-ratio.entry.js.map +0 -1
  291. package/dist/nano-components/nano-table-a6641aef.js +0 -5
  292. package/dist/nano-components/nano-table-a6641aef.js.map +0 -1
  293. package/dist/nano-components/table.worker-6b597e20.js +0 -5
  294. package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +0 -19
  295. /package/dist/nano-components/{table.worker-6b597e20.js.map → table.worker-761fba3e.js.map} +0 -0
@@ -0,0 +1,1209 @@
1
+ /*!
2
+ * Web Components for Nanopore digital Web Apps
3
+ */
4
+ 'use strict';
5
+
6
+ Object.defineProperty(exports, '__esModule', { value: true });
7
+
8
+ const index = require('./index-14451c95.js');
9
+
10
+ const bounce = [
11
+ {
12
+ offset: 0,
13
+ easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
14
+ transform: 'translate3d(0, 0, 0)',
15
+ },
16
+ {
17
+ offset: 0.2,
18
+ easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
19
+ transform: 'translate3d(0, 0, 0)',
20
+ },
21
+ {
22
+ offset: 0.4,
23
+ easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
24
+ transform: 'translate3d(0, -30px, 0) scaleY(1.1)',
25
+ },
26
+ {
27
+ offset: 0.43,
28
+ easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
29
+ transform: 'translate3d(0, -30px, 0) scaleY(1.1)',
30
+ },
31
+ {
32
+ offset: 0.53,
33
+ easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
34
+ transform: 'translate3d(0, 0, 0)',
35
+ },
36
+ {
37
+ offset: 0.7,
38
+ easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
39
+ transform: 'translate3d(0, -15px, 0) scaleY(1.05)',
40
+ },
41
+ {
42
+ offset: 0.8,
43
+ 'transition-timing-function': 'cubic-bezier(0.215, 0.61, 0.355, 1)',
44
+ transform: 'translate3d(0, 0, 0) scaleY(0.95)',
45
+ },
46
+ { offset: 0.9, transform: 'translate3d(0, -4px, 0) scaleY(1.02)' },
47
+ {
48
+ offset: 1,
49
+ easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
50
+ transform: 'translate3d(0, 0, 0)',
51
+ },
52
+ ];
53
+
54
+ const flash = [
55
+ { offset: 0, opacity: '1' },
56
+ { offset: 0.25, opacity: '0' },
57
+ { offset: 0.5, opacity: '1' },
58
+ { offset: 0.75, opacity: '0' },
59
+ { offset: 1, opacity: '1' },
60
+ ];
61
+
62
+ const headShake = [
63
+ { offset: 0, transform: 'translateX(0)' },
64
+ { offset: 0.065, transform: 'translateX(-6px) rotateY(-9deg)' },
65
+ { offset: 0.185, transform: 'translateX(5px) rotateY(7deg)' },
66
+ { offset: 0.315, transform: 'translateX(-3px) rotateY(-5deg)' },
67
+ { offset: 0.435, transform: 'translateX(2px) rotateY(3deg)' },
68
+ { offset: 0.5, transform: 'translateX(0)' },
69
+ ];
70
+
71
+ const heartBeat = [
72
+ { offset: 0, transform: 'scale(1)' },
73
+ { offset: 0.14, transform: 'scale(1.3)' },
74
+ { offset: 0.28, transform: 'scale(1)' },
75
+ { offset: 0.42, transform: 'scale(1.3)' },
76
+ { offset: 0.7, transform: 'scale(1)' },
77
+ ];
78
+
79
+ const jello = [
80
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
81
+ { offset: 0.111, transform: 'translate3d(0, 0, 0)' },
82
+ { offset: 0.222, transform: 'skewX(-12.5deg) skewY(-12.5deg)' },
83
+ { offset: 0.33299999999999996, transform: 'skewX(6.25deg) skewY(6.25deg)' },
84
+ { offset: 0.444, transform: 'skewX(-3.125deg) skewY(-3.125deg)' },
85
+ { offset: 0.555, transform: 'skewX(1.5625deg) skewY(1.5625deg)' },
86
+ {
87
+ offset: 0.6659999999999999,
88
+ transform: 'skewX(-0.78125deg) skewY(-0.78125deg)',
89
+ },
90
+ { offset: 0.777, transform: 'skewX(0.390625deg) skewY(0.390625deg)' },
91
+ { offset: 0.888, transform: 'skewX(-0.1953125deg) skewY(-0.1953125deg)' },
92
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
93
+ ];
94
+
95
+ const pulse = [
96
+ { offset: 0, transform: 'scale3d(1, 1, 1)' },
97
+ { offset: 0.5, transform: 'scale3d(1.05, 1.05, 1.05)' },
98
+ { offset: 1, transform: 'scale3d(1, 1, 1)' },
99
+ ];
100
+
101
+ const rubberBand = [
102
+ { offset: 0, transform: 'scale3d(1, 1, 1)' },
103
+ { offset: 0.3, transform: 'scale3d(1.25, 0.75, 1)' },
104
+ { offset: 0.4, transform: 'scale3d(0.75, 1.25, 1)' },
105
+ { offset: 0.5, transform: 'scale3d(1.15, 0.85, 1)' },
106
+ { offset: 0.65, transform: 'scale3d(0.95, 1.05, 1)' },
107
+ { offset: 0.75, transform: 'scale3d(1.05, 0.95, 1)' },
108
+ { offset: 1, transform: 'scale3d(1, 1, 1)' },
109
+ ];
110
+
111
+ const shake = [
112
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
113
+ { offset: 0.1, transform: 'translate3d(-10px, 0, 0)' },
114
+ { offset: 0.2, transform: 'translate3d(10px, 0, 0)' },
115
+ { offset: 0.3, transform: 'translate3d(-10px, 0, 0)' },
116
+ { offset: 0.4, transform: 'translate3d(10px, 0, 0)' },
117
+ { offset: 0.5, transform: 'translate3d(-10px, 0, 0)' },
118
+ { offset: 0.6, transform: 'translate3d(10px, 0, 0)' },
119
+ { offset: 0.7, transform: 'translate3d(-10px, 0, 0)' },
120
+ { offset: 0.8, transform: 'translate3d(10px, 0, 0)' },
121
+ { offset: 0.9, transform: 'translate3d(-10px, 0, 0)' },
122
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
123
+ ];
124
+
125
+ const shakeX = [
126
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
127
+ { offset: 0.1, transform: 'translate3d(-10px, 0, 0)' },
128
+ { offset: 0.2, transform: 'translate3d(10px, 0, 0)' },
129
+ { offset: 0.3, transform: 'translate3d(-10px, 0, 0)' },
130
+ { offset: 0.4, transform: 'translate3d(10px, 0, 0)' },
131
+ { offset: 0.5, transform: 'translate3d(-10px, 0, 0)' },
132
+ { offset: 0.6, transform: 'translate3d(10px, 0, 0)' },
133
+ { offset: 0.7, transform: 'translate3d(-10px, 0, 0)' },
134
+ { offset: 0.8, transform: 'translate3d(10px, 0, 0)' },
135
+ { offset: 0.9, transform: 'translate3d(-10px, 0, 0)' },
136
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
137
+ ];
138
+
139
+ const shakeY = [
140
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
141
+ { offset: 0.1, transform: 'translate3d(0, -10px, 0)' },
142
+ { offset: 0.2, transform: 'translate3d(0, 10px, 0)' },
143
+ { offset: 0.3, transform: 'translate3d(0, -10px, 0)' },
144
+ { offset: 0.4, transform: 'translate3d(0, 10px, 0)' },
145
+ { offset: 0.5, transform: 'translate3d(0, -10px, 0)' },
146
+ { offset: 0.6, transform: 'translate3d(0, 10px, 0)' },
147
+ { offset: 0.7, transform: 'translate3d(0, -10px, 0)' },
148
+ { offset: 0.8, transform: 'translate3d(0, 10px, 0)' },
149
+ { offset: 0.9, transform: 'translate3d(0, -10px, 0)' },
150
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
151
+ ];
152
+
153
+ const swing = [
154
+ { offset: 0.2, transform: 'rotate3d(0, 0, 1, 15deg)' },
155
+ { offset: 0.4, transform: 'rotate3d(0, 0, 1, -10deg)' },
156
+ { offset: 0.6, transform: 'rotate3d(0, 0, 1, 5deg)' },
157
+ { offset: 0.8, transform: 'rotate3d(0, 0, 1, -5deg)' },
158
+ { offset: 1, transform: 'rotate3d(0, 0, 1, 0deg)' },
159
+ ];
160
+
161
+ const tada = [
162
+ { offset: 0, transform: 'scale3d(1, 1, 1)' },
163
+ { offset: 0.1, transform: 'scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)' },
164
+ { offset: 0.2, transform: 'scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)' },
165
+ { offset: 0.3, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
166
+ { offset: 0.4, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
167
+ { offset: 0.5, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
168
+ { offset: 0.6, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
169
+ { offset: 0.7, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
170
+ { offset: 0.8, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
171
+ { offset: 0.9, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
172
+ { offset: 1, transform: 'scale3d(1, 1, 1)' },
173
+ ];
174
+
175
+ const wobble = [
176
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
177
+ {
178
+ offset: 0.15,
179
+ transform: 'translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)',
180
+ },
181
+ { offset: 0.3, transform: 'translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)' },
182
+ {
183
+ offset: 0.45,
184
+ transform: 'translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)',
185
+ },
186
+ { offset: 0.6, transform: 'translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)' },
187
+ {
188
+ offset: 0.75,
189
+ transform: 'translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)',
190
+ },
191
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
192
+ ];
193
+
194
+ const backInDown = [
195
+ { offset: 0, transform: 'translateY(-1200px) scale(0.7)', opacity: '0.7' },
196
+ { offset: 0.8, transform: 'translateY(0px) scale(0.7)', opacity: '0.7' },
197
+ { offset: 1, transform: 'scale(1)', opacity: '1' },
198
+ ];
199
+
200
+ const backInLeft = [
201
+ { offset: 0, transform: 'translateX(-2000px) scale(0.7)', opacity: '0.7' },
202
+ { offset: 0.8, transform: 'translateX(0px) scale(0.7)', opacity: '0.7' },
203
+ { offset: 1, transform: 'scale(1)', opacity: '1' },
204
+ ];
205
+
206
+ const backInRight = [
207
+ { offset: 0, transform: 'translateX(2000px) scale(0.7)', opacity: '0.7' },
208
+ { offset: 0.8, transform: 'translateX(0px) scale(0.7)', opacity: '0.7' },
209
+ { offset: 1, transform: 'scale(1)', opacity: '1' },
210
+ ];
211
+
212
+ const backInUp = [
213
+ { offset: 0, transform: 'translateY(1200px) scale(0.7)', opacity: '0.7' },
214
+ { offset: 0.8, transform: 'translateY(0px) scale(0.7)', opacity: '0.7' },
215
+ { offset: 1, transform: 'scale(1)', opacity: '1' },
216
+ ];
217
+
218
+ const backOutDown = [
219
+ { offset: 0, transform: 'scale(1)', opacity: '1' },
220
+ { offset: 0.2, transform: 'translateY(0px) scale(0.7)', opacity: '0.7' },
221
+ { offset: 1, transform: 'translateY(700px) scale(0.7)', opacity: '0.7' },
222
+ ];
223
+
224
+ const backOutLeft = [
225
+ { offset: 0, transform: 'scale(1)', opacity: '1' },
226
+ { offset: 0.2, transform: 'translateX(0px) scale(0.7)', opacity: '0.7' },
227
+ { offset: 1, transform: 'translateX(-2000px) scale(0.7)', opacity: '0.7' },
228
+ ];
229
+
230
+ const backOutRight = [
231
+ { offset: 0, transform: 'scale(1)', opacity: '1' },
232
+ { offset: 0.2, transform: 'translateX(0px) scale(0.7)', opacity: '0.7' },
233
+ { offset: 1, transform: 'translateX(2000px) scale(0.7)', opacity: '0.7' },
234
+ ];
235
+
236
+ const backOutUp = [
237
+ { offset: 0, transform: 'scale(1)', opacity: '1' },
238
+ { offset: 0.2, transform: 'translateY(0px) scale(0.7)', opacity: '0.7' },
239
+ { offset: 1, transform: 'translateY(-700px) scale(0.7)', opacity: '0.7' },
240
+ ];
241
+
242
+ const bounceIn = [
243
+ { offset: 0, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' },
244
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
245
+ { offset: 0.2, transform: 'scale3d(1.1, 1.1, 1.1)' },
246
+ { offset: 0.2, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
247
+ { offset: 0.4, transform: 'scale3d(0.9, 0.9, 0.9)' },
248
+ { offset: 0.4, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
249
+ { offset: 0.6, opacity: '1', transform: 'scale3d(1.03, 1.03, 1.03)' },
250
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
251
+ { offset: 0.8, transform: 'scale3d(0.97, 0.97, 0.97)' },
252
+ { offset: 0.8, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
253
+ { offset: 1, opacity: '1', transform: 'scale3d(1, 1, 1)' },
254
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
255
+ ];
256
+
257
+ const bounceInDown = [
258
+ {
259
+ offset: 0,
260
+ opacity: '0',
261
+ transform: 'translate3d(0, -3000px, 0) scaleY(3)',
262
+ },
263
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
264
+ {
265
+ offset: 0.6,
266
+ opacity: '1',
267
+ transform: 'translate3d(0, 25px, 0) scaleY(0.9)',
268
+ },
269
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
270
+ { offset: 0.75, transform: 'translate3d(0, -10px, 0) scaleY(0.95)' },
271
+ { offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
272
+ { offset: 0.9, transform: 'translate3d(0, 5px, 0) scaleY(0.985)' },
273
+ { offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
274
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
275
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
276
+ ];
277
+
278
+ const bounceInLeft = [
279
+ {
280
+ offset: 0,
281
+ opacity: '0',
282
+ transform: 'translate3d(-3000px, 0, 0) scaleX(3)',
283
+ },
284
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
285
+ { offset: 0.6, opacity: '1', transform: 'translate3d(25px, 0, 0) scaleX(1)' },
286
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
287
+ { offset: 0.75, transform: 'translate3d(-10px, 0, 0) scaleX(0.98)' },
288
+ { offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
289
+ { offset: 0.9, transform: 'translate3d(5px, 0, 0) scaleX(0.995)' },
290
+ { offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
291
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
292
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
293
+ ];
294
+
295
+ const bounceInRight = [
296
+ { offset: 0, opacity: '0', transform: 'translate3d(3000px, 0, 0) scaleX(3)' },
297
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
298
+ {
299
+ offset: 0.6,
300
+ opacity: '1',
301
+ transform: 'translate3d(-25px, 0, 0) scaleX(1)',
302
+ },
303
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
304
+ { offset: 0.75, transform: 'translate3d(10px, 0, 0) scaleX(0.98)' },
305
+ { offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
306
+ { offset: 0.9, transform: 'translate3d(-5px, 0, 0) scaleX(0.995)' },
307
+ { offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
308
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
309
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
310
+ ];
311
+
312
+ const bounceInUp = [
313
+ { offset: 0, opacity: '0', transform: 'translate3d(0, 3000px, 0) scaleY(5)' },
314
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
315
+ {
316
+ offset: 0.6,
317
+ opacity: '1',
318
+ transform: 'translate3d(0, -20px, 0) scaleY(0.9)',
319
+ },
320
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
321
+ { offset: 0.75, transform: 'translate3d(0, 10px, 0) scaleY(0.95)' },
322
+ { offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
323
+ { offset: 0.9, transform: 'translate3d(0, -5px, 0) scaleY(0.985)' },
324
+ { offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
325
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
326
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
327
+ ];
328
+
329
+ const bounceOut = [
330
+ { offset: 0.2, transform: 'scale3d(0.9, 0.9, 0.9)' },
331
+ { offset: 0.5, opacity: '1', transform: 'scale3d(1.1, 1.1, 1.1)' },
332
+ { offset: 0.55, opacity: '1', transform: 'scale3d(1.1, 1.1, 1.1)' },
333
+ { offset: 1, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' },
334
+ ];
335
+
336
+ const bounceOutDown = [
337
+ { offset: 0.2, transform: 'translate3d(0, 10px, 0) scaleY(0.985)' },
338
+ {
339
+ offset: 0.4,
340
+ opacity: '1',
341
+ transform: 'translate3d(0, -20px, 0) scaleY(0.9)',
342
+ },
343
+ {
344
+ offset: 0.45,
345
+ opacity: '1',
346
+ transform: 'translate3d(0, -20px, 0) scaleY(0.9)',
347
+ },
348
+ { offset: 1, opacity: '0', transform: 'translate3d(0, 2000px, 0) scaleY(3)' },
349
+ ];
350
+
351
+ const bounceOutLeft = [
352
+ {
353
+ offset: 0.2,
354
+ opacity: '1',
355
+ transform: 'translate3d(20px, 0, 0) scaleX(0.9)',
356
+ },
357
+ {
358
+ offset: 1,
359
+ opacity: '0',
360
+ transform: 'translate3d(-2000px, 0, 0) scaleX(2)',
361
+ },
362
+ ];
363
+
364
+ const bounceOutRight = [
365
+ {
366
+ offset: 0.2,
367
+ opacity: '1',
368
+ transform: 'translate3d(-20px, 0, 0) scaleX(0.9)',
369
+ },
370
+ { offset: 1, opacity: '0', transform: 'translate3d(2000px, 0, 0) scaleX(2)' },
371
+ ];
372
+
373
+ const bounceOutUp = [
374
+ { offset: 0.2, transform: 'translate3d(0, -10px, 0) scaleY(0.985)' },
375
+ {
376
+ offset: 0.4,
377
+ opacity: '1',
378
+ transform: 'translate3d(0, 20px, 0) scaleY(0.9)',
379
+ },
380
+ {
381
+ offset: 0.45,
382
+ opacity: '1',
383
+ transform: 'translate3d(0, 20px, 0) scaleY(0.9)',
384
+ },
385
+ {
386
+ offset: 1,
387
+ opacity: '0',
388
+ transform: 'translate3d(0, -2000px, 0) scaleY(3)',
389
+ },
390
+ ];
391
+
392
+ const fadeIn = [
393
+ { offset: 0, opacity: '0' },
394
+ { offset: 1, opacity: '1' },
395
+ ];
396
+
397
+ const fadeInBottomLeft = [
398
+ { offset: 0, opacity: '0', transform: 'translate3d(-100%, 100%, 0)' },
399
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
400
+ ];
401
+
402
+ const fadeInBottomRight = [
403
+ { offset: 0, opacity: '0', transform: 'translate3d(100%, 100%, 0)' },
404
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
405
+ ];
406
+
407
+ const fadeInDown = [
408
+ { offset: 0, opacity: '0', transform: 'translate3d(0, -100%, 0)' },
409
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
410
+ ];
411
+
412
+ const fadeInDownBig = [
413
+ { offset: 0, opacity: '0', transform: 'translate3d(0, -2000px, 0)' },
414
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
415
+ ];
416
+
417
+ const fadeInLeft = [
418
+ { offset: 0, opacity: '0', transform: 'translate3d(-100%, 0, 0)' },
419
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
420
+ ];
421
+
422
+ const fadeInLeftBig = [
423
+ { offset: 0, opacity: '0', transform: 'translate3d(-2000px, 0, 0)' },
424
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
425
+ ];
426
+
427
+ const fadeInRight = [
428
+ { offset: 0, opacity: '0', transform: 'translate3d(100%, 0, 0)' },
429
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
430
+ ];
431
+
432
+ const fadeInRightBig = [
433
+ { offset: 0, opacity: '0', transform: 'translate3d(2000px, 0, 0)' },
434
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
435
+ ];
436
+
437
+ const fadeInTopLeft = [
438
+ { offset: 0, opacity: '0', transform: 'translate3d(-100%, -100%, 0)' },
439
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
440
+ ];
441
+
442
+ const fadeInTopRight = [
443
+ { offset: 0, opacity: '0', transform: 'translate3d(100%, -100%, 0)' },
444
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
445
+ ];
446
+
447
+ const fadeInUp = [
448
+ { offset: 0, opacity: '0', transform: 'translate3d(0, 100%, 0)' },
449
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
450
+ ];
451
+
452
+ const fadeInUpBig = [
453
+ { offset: 0, opacity: '0', transform: 'translate3d(0, 2000px, 0)' },
454
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
455
+ ];
456
+
457
+ const fadeOut = [
458
+ { offset: 0, opacity: '1' },
459
+ { offset: 1, opacity: '0' },
460
+ ];
461
+
462
+ const fadeOutBottomLeft = [
463
+ { offset: 0, opacity: '1', transform: 'translate3d(0, 0, 0)' },
464
+ { offset: 1, opacity: '0', transform: 'translate3d(-100%, 100%, 0)' },
465
+ ];
466
+
467
+ const fadeOutBottomRight = [
468
+ { offset: 0, opacity: '1', transform: 'translate3d(0, 0, 0)' },
469
+ { offset: 1, opacity: '0', transform: 'translate3d(100%, 100%, 0)' },
470
+ ];
471
+
472
+ const fadeOutDown = [
473
+ { offset: 0, opacity: '1' },
474
+ { offset: 1, opacity: '0', transform: 'translate3d(0, 100%, 0)' },
475
+ ];
476
+
477
+ const fadeOutDownBig = [
478
+ { offset: 0, opacity: '1' },
479
+ { offset: 1, opacity: '0', transform: 'translate3d(0, 2000px, 0)' },
480
+ ];
481
+
482
+ const fadeOutLeft = [
483
+ { offset: 0, opacity: '1' },
484
+ { offset: 1, opacity: '0', transform: 'translate3d(-100%, 0, 0)' },
485
+ ];
486
+
487
+ const fadeOutLeftBig = [
488
+ { offset: 0, opacity: '1' },
489
+ { offset: 1, opacity: '0', transform: 'translate3d(-2000px, 0, 0)' },
490
+ ];
491
+
492
+ const fadeOutRight = [
493
+ { offset: 0, opacity: '1' },
494
+ { offset: 1, opacity: '0', transform: 'translate3d(100%, 0, 0)' },
495
+ ];
496
+
497
+ const fadeOutRightBig = [
498
+ { offset: 0, opacity: '1' },
499
+ { offset: 1, opacity: '0', transform: 'translate3d(2000px, 0, 0)' },
500
+ ];
501
+
502
+ const fadeOutTopLeft = [
503
+ { offset: 0, opacity: '1', transform: 'translate3d(0, 0, 0)' },
504
+ { offset: 1, opacity: '0', transform: 'translate3d(-100%, -100%, 0)' },
505
+ ];
506
+
507
+ const fadeOutTopRight = [
508
+ { offset: 0, opacity: '1', transform: 'translate3d(0, 0, 0)' },
509
+ { offset: 1, opacity: '0', transform: 'translate3d(100%, -100%, 0)' },
510
+ ];
511
+
512
+ const fadeOutUp = [
513
+ { offset: 0, opacity: '1' },
514
+ { offset: 1, opacity: '0', transform: 'translate3d(0, -100%, 0)' },
515
+ ];
516
+
517
+ const fadeOutUpBig = [
518
+ { offset: 0, opacity: '1' },
519
+ { offset: 1, opacity: '0', transform: 'translate3d(0, -2000px, 0)' },
520
+ ];
521
+
522
+ const flip = [
523
+ {
524
+ offset: 0,
525
+ transform:
526
+ 'perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)',
527
+ easing: 'ease-out',
528
+ },
529
+ {
530
+ offset: 0.4,
531
+ transform:
532
+ 'perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)\n rotate3d(0, 1, 0, -190deg)',
533
+ easing: 'ease-out',
534
+ },
535
+ {
536
+ offset: 0.5,
537
+ transform:
538
+ 'perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)\n rotate3d(0, 1, 0, -170deg)',
539
+ easing: 'ease-in',
540
+ },
541
+ {
542
+ offset: 0.8,
543
+ transform:
544
+ 'perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0)\n rotate3d(0, 1, 0, 0deg)',
545
+ easing: 'ease-in',
546
+ },
547
+ {
548
+ offset: 1,
549
+ transform:
550
+ 'perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)',
551
+ easing: 'ease-in',
552
+ },
553
+ ];
554
+
555
+ const flipInX = [
556
+ {
557
+ offset: 0,
558
+ transform: 'perspective(400px) rotate3d(1, 0, 0, 90deg)',
559
+ easing: 'ease-in',
560
+ opacity: '0',
561
+ },
562
+ {
563
+ offset: 0.4,
564
+ transform: 'perspective(400px) rotate3d(1, 0, 0, -20deg)',
565
+ easing: 'ease-in',
566
+ },
567
+ {
568
+ offset: 0.6,
569
+ transform: 'perspective(400px) rotate3d(1, 0, 0, 10deg)',
570
+ opacity: '1',
571
+ },
572
+ { offset: 0.8, transform: 'perspective(400px) rotate3d(1, 0, 0, -5deg)' },
573
+ { offset: 1, transform: 'perspective(400px)' },
574
+ ];
575
+
576
+ const flipInY = [
577
+ {
578
+ offset: 0,
579
+ transform: 'perspective(400px) rotate3d(0, 1, 0, 90deg)',
580
+ easing: 'ease-in',
581
+ opacity: '0',
582
+ },
583
+ {
584
+ offset: 0.4,
585
+ transform: 'perspective(400px) rotate3d(0, 1, 0, -20deg)',
586
+ easing: 'ease-in',
587
+ },
588
+ {
589
+ offset: 0.6,
590
+ transform: 'perspective(400px) rotate3d(0, 1, 0, 10deg)',
591
+ opacity: '1',
592
+ },
593
+ { offset: 0.8, transform: 'perspective(400px) rotate3d(0, 1, 0, -5deg)' },
594
+ { offset: 1, transform: 'perspective(400px)' },
595
+ ];
596
+
597
+ const flipOutX = [
598
+ { offset: 0, transform: 'perspective(400px)' },
599
+ {
600
+ offset: 0.3,
601
+ transform: 'perspective(400px) rotate3d(1, 0, 0, -20deg)',
602
+ opacity: '1',
603
+ },
604
+ {
605
+ offset: 1,
606
+ transform: 'perspective(400px) rotate3d(1, 0, 0, 90deg)',
607
+ opacity: '0',
608
+ },
609
+ ];
610
+
611
+ const flipOutY = [
612
+ { offset: 0, transform: 'perspective(400px)' },
613
+ {
614
+ offset: 0.3,
615
+ transform: 'perspective(400px) rotate3d(0, 1, 0, -15deg)',
616
+ opacity: '1',
617
+ },
618
+ {
619
+ offset: 1,
620
+ transform: 'perspective(400px) rotate3d(0, 1, 0, 90deg)',
621
+ opacity: '0',
622
+ },
623
+ ];
624
+
625
+ const lightSpeedInLeft = [
626
+ {
627
+ offset: 0,
628
+ transform: 'translate3d(-100%, 0, 0) skewX(30deg)',
629
+ opacity: '0',
630
+ },
631
+ { offset: 0.6, transform: 'skewX(-20deg)', opacity: '1' },
632
+ { offset: 0.8, transform: 'skewX(5deg)' },
633
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
634
+ ];
635
+
636
+ const lightSpeedInRight = [
637
+ {
638
+ offset: 0,
639
+ transform: 'translate3d(100%, 0, 0) skewX(-30deg)',
640
+ opacity: '0',
641
+ },
642
+ { offset: 0.6, transform: 'skewX(20deg)', opacity: '1' },
643
+ { offset: 0.8, transform: 'skewX(-5deg)' },
644
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
645
+ ];
646
+
647
+ const lightSpeedOutLeft = [
648
+ { offset: 0, opacity: '1' },
649
+ {
650
+ offset: 1,
651
+ transform: 'translate3d(-100%, 0, 0) skewX(-30deg)',
652
+ opacity: '0',
653
+ },
654
+ ];
655
+
656
+ const lightSpeedOutRight = [
657
+ { offset: 0, opacity: '1' },
658
+ {
659
+ offset: 1,
660
+ transform: 'translate3d(100%, 0, 0) skewX(30deg)',
661
+ opacity: '0',
662
+ },
663
+ ];
664
+
665
+ const rotateIn = [
666
+ { offset: 0, transform: 'rotate3d(0, 0, 1, -200deg)', opacity: '0' },
667
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' },
668
+ ];
669
+
670
+ const rotateInDownLeft = [
671
+ { offset: 0, transform: 'rotate3d(0, 0, 1, -45deg)', opacity: '0' },
672
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' },
673
+ ];
674
+
675
+ const rotateInDownRight = [
676
+ { offset: 0, transform: 'rotate3d(0, 0, 1, 45deg)', opacity: '0' },
677
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' },
678
+ ];
679
+
680
+ const rotateInUpLeft = [
681
+ { offset: 0, transform: 'rotate3d(0, 0, 1, 45deg)', opacity: '0' },
682
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' },
683
+ ];
684
+
685
+ const rotateInUpRight = [
686
+ { offset: 0, transform: 'rotate3d(0, 0, 1, -90deg)', opacity: '0' },
687
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' },
688
+ ];
689
+
690
+ const rotateOut = [
691
+ { offset: 0, opacity: '1' },
692
+ { offset: 1, transform: 'rotate3d(0, 0, 1, 200deg)', opacity: '0' },
693
+ ];
694
+
695
+ const rotateOutDownLeft = [
696
+ { offset: 0, opacity: '1' },
697
+ { offset: 1, transform: 'rotate3d(0, 0, 1, 45deg)', opacity: '0' },
698
+ ];
699
+
700
+ const rotateOutDownRight = [
701
+ { offset: 0, opacity: '1' },
702
+ { offset: 1, transform: 'rotate3d(0, 0, 1, -45deg)', opacity: '0' },
703
+ ];
704
+
705
+ const rotateOutUpLeft = [
706
+ { offset: 0, opacity: '1' },
707
+ { offset: 1, transform: 'rotate3d(0, 0, 1, -45deg)', opacity: '0' },
708
+ ];
709
+
710
+ const rotateOutUpRight = [
711
+ { offset: 0, opacity: '1' },
712
+ { offset: 1, transform: 'rotate3d(0, 0, 1, 90deg)', opacity: '0' },
713
+ ];
714
+
715
+ const slideInDown = [
716
+ { offset: 0, transform: 'translate3d(0, -100%, 0)', visibility: 'visible' },
717
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
718
+ ];
719
+
720
+ const slideInLeft = [
721
+ { offset: 0, transform: 'translate3d(-100%, 0, 0)', visibility: 'visible' },
722
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
723
+ ];
724
+
725
+ const slideInRight = [
726
+ { offset: 0, transform: 'translate3d(100%, 0, 0)', visibility: 'visible' },
727
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
728
+ ];
729
+
730
+ const slideInUp = [
731
+ { offset: 0, transform: 'translate3d(0, 100%, 0)', visibility: 'visible' },
732
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
733
+ ];
734
+
735
+ const slideOutDown = [
736
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
737
+ { offset: 1, visibility: 'hidden', transform: 'translate3d(0, 100%, 0)' },
738
+ ];
739
+
740
+ const slideOutLeft = [
741
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
742
+ { offset: 1, visibility: 'hidden', transform: 'translate3d(-100%, 0, 0)' },
743
+ ];
744
+
745
+ const slideOutRight = [
746
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
747
+ { offset: 1, visibility: 'hidden', transform: 'translate3d(100%, 0, 0)' },
748
+ ];
749
+
750
+ const slideOutUp = [
751
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
752
+ { offset: 1, visibility: 'hidden', transform: 'translate3d(0, -100%, 0)' },
753
+ ];
754
+
755
+ const hinge = [
756
+ { offset: 0, easing: 'ease-in-out' },
757
+ { offset: 0.2, transform: 'rotate3d(0, 0, 1, 80deg)', easing: 'ease-in-out' },
758
+ {
759
+ offset: 0.4,
760
+ transform: 'rotate3d(0, 0, 1, 60deg)',
761
+ easing: 'ease-in-out',
762
+ opacity: '1',
763
+ },
764
+ { offset: 0.6, transform: 'rotate3d(0, 0, 1, 80deg)', easing: 'ease-in-out' },
765
+ {
766
+ offset: 0.8,
767
+ transform: 'rotate3d(0, 0, 1, 60deg)',
768
+ easing: 'ease-in-out',
769
+ opacity: '1',
770
+ },
771
+ { offset: 1, transform: 'translate3d(0, 700px, 0)', opacity: '0' },
772
+ ];
773
+
774
+ const jackInTheBox = [
775
+ {
776
+ offset: 0,
777
+ opacity: '0',
778
+ transform: 'scale(0.1) rotate(30deg)',
779
+ 'transform-origin': 'center bottom',
780
+ },
781
+ { offset: 0.5, transform: 'rotate(-10deg)' },
782
+ { offset: 0.7, transform: 'rotate(3deg)' },
783
+ { offset: 1, opacity: '1', transform: 'scale(1)' },
784
+ ];
785
+
786
+ const rollIn = [
787
+ {
788
+ offset: 0,
789
+ opacity: '0',
790
+ transform: 'translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)',
791
+ },
792
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' },
793
+ ];
794
+
795
+ const rollOut = [
796
+ { offset: 0, opacity: '1' },
797
+ {
798
+ offset: 1,
799
+ opacity: '0',
800
+ transform: 'translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)',
801
+ },
802
+ ];
803
+
804
+ const zoomIn = [
805
+ { offset: 0, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' },
806
+ { offset: 0.5, opacity: '1' },
807
+ ];
808
+
809
+ const zoomInDown = [
810
+ {
811
+ offset: 0,
812
+ opacity: '0',
813
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)',
814
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
815
+ },
816
+ {
817
+ offset: 0.6,
818
+ opacity: '1',
819
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)',
820
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)',
821
+ },
822
+ ];
823
+
824
+ const zoomInLeft = [
825
+ {
826
+ offset: 0,
827
+ opacity: '0',
828
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)',
829
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
830
+ },
831
+ {
832
+ offset: 0.6,
833
+ opacity: '1',
834
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)',
835
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)',
836
+ },
837
+ ];
838
+
839
+ const zoomInRight = [
840
+ {
841
+ offset: 0,
842
+ opacity: '0',
843
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)',
844
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
845
+ },
846
+ {
847
+ offset: 0.6,
848
+ opacity: '1',
849
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)',
850
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)',
851
+ },
852
+ ];
853
+
854
+ const zoomInUp = [
855
+ {
856
+ offset: 0,
857
+ opacity: '0',
858
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)',
859
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
860
+ },
861
+ {
862
+ offset: 0.6,
863
+ opacity: '1',
864
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)',
865
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)',
866
+ },
867
+ ];
868
+
869
+ const zoomOut = [
870
+ { offset: 0, opacity: '1' },
871
+ { offset: 0.5, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' },
872
+ { offset: 1, opacity: '0' },
873
+ ];
874
+
875
+ const zoomOutDown = [
876
+ {
877
+ offset: 0.4,
878
+ opacity: '1',
879
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)',
880
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
881
+ },
882
+ {
883
+ offset: 1,
884
+ opacity: '0',
885
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)',
886
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)',
887
+ },
888
+ ];
889
+
890
+ const zoomOutLeft = [
891
+ {
892
+ offset: 0.4,
893
+ opacity: '1',
894
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)',
895
+ },
896
+ {
897
+ offset: 1,
898
+ opacity: '0',
899
+ transform: 'scale(0.1) translate3d(-2000px, 0, 0)',
900
+ },
901
+ ];
902
+
903
+ const zoomOutRight = [
904
+ {
905
+ offset: 0.4,
906
+ opacity: '1',
907
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)',
908
+ },
909
+ {
910
+ offset: 1,
911
+ opacity: '0',
912
+ transform: 'scale(0.1) translate3d(2000px, 0, 0)',
913
+ },
914
+ ];
915
+
916
+ const zoomOutUp = [
917
+ {
918
+ offset: 0.4,
919
+ opacity: '1',
920
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)',
921
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
922
+ },
923
+ {
924
+ offset: 1,
925
+ opacity: '0',
926
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)',
927
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)',
928
+ },
929
+ ];
930
+
931
+ const easings = {
932
+ linear: 'linear',
933
+ ease: 'ease',
934
+ easeIn: 'ease-in',
935
+ easeOut: 'ease-out',
936
+ easeInOut: 'ease-in-out',
937
+ easeInSine: 'cubic-bezier(0.47, 0, 0.745, 0.715)',
938
+ easeOutSine: 'cubic-bezier(0.39, 0.575, 0.565, 1)',
939
+ easeInOutSine: 'cubic-bezier(0.445, 0.05, 0.55, 0.95)',
940
+ easeInQuad: 'cubic-bezier(0.55, 0.085, 0.68, 0.53)',
941
+ easeOutQuad: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
942
+ easeInOutQuad: 'cubic-bezier(0.455, 0.03, 0.515, 0.955)',
943
+ easeInCubic: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
944
+ easeOutCubic: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
945
+ easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
946
+ easeInQuart: 'cubic-bezier(0.895, 0.03, 0.685, 0.22)',
947
+ easeOutQuart: 'cubic-bezier(0.165, 0.84, 0.44, 1)',
948
+ easeInOutQuart: 'cubic-bezier(0.77, 0, 0.175, 1)',
949
+ easeInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
950
+ easeOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
951
+ easeInOutQuint: 'cubic-bezier(0.86, 0, 0.07, 1)',
952
+ easeInExpo: 'cubic-bezier(0.95, 0.05, 0.795, 0.035)',
953
+ easeOutExpo: 'cubic-bezier(0.19, 1, 0.22, 1)',
954
+ easeInOutExpo: 'cubic-bezier(1, 0, 0, 1)',
955
+ easeInCirc: 'cubic-bezier(0.6, 0.04, 0.98, 0.335)',
956
+ easeOutCirc: 'cubic-bezier(0.075, 0.82, 0.165, 1)',
957
+ easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.15, 0.86)',
958
+ easeInBack: 'cubic-bezier(0.6, -0.28, 0.735, 0.045)',
959
+ easeOutBack: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
960
+ easeInOutBack: 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',
961
+ };
962
+
963
+ const animations = {
964
+ bounce,
965
+ flash,
966
+ headShake,
967
+ heartBeat,
968
+ jello,
969
+ pulse,
970
+ rubberBand,
971
+ shake,
972
+ shakeX,
973
+ shakeY,
974
+ swing,
975
+ tada,
976
+ wobble,
977
+ backInDown,
978
+ backInLeft,
979
+ backInRight,
980
+ backInUp,
981
+ backOutDown,
982
+ backOutLeft,
983
+ backOutRight,
984
+ backOutUp,
985
+ bounceIn,
986
+ bounceInDown,
987
+ bounceInLeft,
988
+ bounceInRight,
989
+ bounceInUp,
990
+ bounceOut,
991
+ bounceOutDown,
992
+ bounceOutLeft,
993
+ bounceOutRight,
994
+ bounceOutUp,
995
+ fadeIn,
996
+ fadeInBottomLeft,
997
+ fadeInBottomRight,
998
+ fadeInDown,
999
+ fadeInDownBig,
1000
+ fadeInLeft,
1001
+ fadeInLeftBig,
1002
+ fadeInRight,
1003
+ fadeInRightBig,
1004
+ fadeInTopLeft,
1005
+ fadeInTopRight,
1006
+ fadeInUp,
1007
+ fadeInUpBig,
1008
+ fadeOut,
1009
+ fadeOutBottomLeft,
1010
+ fadeOutBottomRight,
1011
+ fadeOutDown,
1012
+ fadeOutDownBig,
1013
+ fadeOutLeft,
1014
+ fadeOutLeftBig,
1015
+ fadeOutRight,
1016
+ fadeOutRightBig,
1017
+ fadeOutTopLeft,
1018
+ fadeOutTopRight,
1019
+ fadeOutUp,
1020
+ fadeOutUpBig,
1021
+ flip,
1022
+ flipInX,
1023
+ flipInY,
1024
+ flipOutX,
1025
+ flipOutY,
1026
+ lightSpeedInLeft,
1027
+ lightSpeedInRight,
1028
+ lightSpeedOutLeft,
1029
+ lightSpeedOutRight,
1030
+ rotateIn,
1031
+ rotateInDownLeft,
1032
+ rotateInDownRight,
1033
+ rotateInUpLeft,
1034
+ rotateInUpRight,
1035
+ rotateOut,
1036
+ rotateOutDownLeft,
1037
+ rotateOutDownRight,
1038
+ rotateOutUpLeft,
1039
+ rotateOutUpRight,
1040
+ slideInDown,
1041
+ slideInLeft,
1042
+ slideInRight,
1043
+ slideInUp,
1044
+ slideOutDown,
1045
+ slideOutLeft,
1046
+ slideOutRight,
1047
+ slideOutUp,
1048
+ hinge,
1049
+ jackInTheBox,
1050
+ rollIn,
1051
+ rollOut,
1052
+ zoomIn,
1053
+ zoomInDown,
1054
+ zoomInLeft,
1055
+ zoomInRight,
1056
+ zoomInUp,
1057
+ zoomOut,
1058
+ zoomOutDown,
1059
+ zoomOutLeft,
1060
+ zoomOutRight,
1061
+ zoomOutUp,
1062
+ };
1063
+
1064
+ const NanoAnimation = class {
1065
+ constructor(hostRef) {
1066
+ index.registerInstance(this, hostRef);
1067
+ this.nanoCancel = index.createEvent(this, "nanoCancel", 7);
1068
+ this.nanoFinish = index.createEvent(this, "nanoFinish", 7);
1069
+ this.nanoStart = index.createEvent(this, "nanoStart", 7);
1070
+ this.hasStarted = false;
1071
+ this.handleAnimationFinish = () => {
1072
+ this.play = false;
1073
+ this.hasStarted = false;
1074
+ this.nanoFinish.emit();
1075
+ };
1076
+ this.handleAnimationCancel = () => {
1077
+ this.play = false;
1078
+ this.hasStarted = false;
1079
+ this.nanoCancel.emit();
1080
+ };
1081
+ this.handleSlotChange = () => {
1082
+ this.destroyAnimation();
1083
+ this.createAnimation();
1084
+ };
1085
+ this.name = 'none';
1086
+ this.play = false;
1087
+ this.delay = 0;
1088
+ this.direction = 'normal';
1089
+ this.duration = 1000;
1090
+ this.easing = 'ease';
1091
+ this.endDelay = 0;
1092
+ this.fill = 'auto';
1093
+ this.iterations = Infinity;
1094
+ this.iterationStart = 0;
1095
+ this.keyframes = undefined;
1096
+ this.playbackRate = 1;
1097
+ }
1098
+ /** Gets and sets the current animation time. */
1099
+ get currentTime() {
1100
+ return this.animation?.currentTime ?? 0;
1101
+ }
1102
+ set currentTime(time) {
1103
+ if (this.animation) {
1104
+ this.animation.currentTime = time;
1105
+ }
1106
+ }
1107
+ connectedCallback() {
1108
+ this.createAnimation();
1109
+ }
1110
+ disconnectedCallback() {
1111
+ this.destroyAnimation();
1112
+ }
1113
+ async createAnimation() {
1114
+ if (!this.defaultSlot)
1115
+ return;
1116
+ const easing = easings[this.easing] ?? this.easing;
1117
+ const keyframes = this.keyframes ??
1118
+ animations[this.name];
1119
+ const slot = this.defaultSlot;
1120
+ const element = slot.assignedElements()[0];
1121
+ if (!element || !keyframes) {
1122
+ return false;
1123
+ }
1124
+ this.destroyAnimation();
1125
+ this.animation = element.animate(keyframes, {
1126
+ delay: this.delay,
1127
+ direction: this.direction,
1128
+ duration: this.duration,
1129
+ easing,
1130
+ endDelay: this.endDelay,
1131
+ fill: this.fill,
1132
+ iterationStart: this.iterationStart,
1133
+ iterations: this.iterations,
1134
+ });
1135
+ this.animation.playbackRate = this.playbackRate;
1136
+ this.animation.addEventListener('cancel', this.handleAnimationCancel);
1137
+ this.animation.addEventListener('finish', this.handleAnimationFinish);
1138
+ if (this.play) {
1139
+ this.hasStarted = true;
1140
+ this.nanoStart.emit();
1141
+ }
1142
+ else {
1143
+ this.animation.pause();
1144
+ }
1145
+ return true;
1146
+ }
1147
+ destroyAnimation() {
1148
+ if (this.animation) {
1149
+ this.animation.cancel();
1150
+ this.animation.removeEventListener('cancel', this.handleAnimationCancel);
1151
+ this.animation.removeEventListener('finish', this.handleAnimationFinish);
1152
+ this.hasStarted = false;
1153
+ }
1154
+ }
1155
+ handleAnimationChange() {
1156
+ this.createAnimation();
1157
+ }
1158
+ handlePlayChange() {
1159
+ if (this.animation) {
1160
+ if (this.play && !this.hasStarted) {
1161
+ this.hasStarted = true;
1162
+ this.nanoStart.emit();
1163
+ }
1164
+ if (this.play) {
1165
+ this.animation.play();
1166
+ }
1167
+ else {
1168
+ this.animation.pause();
1169
+ }
1170
+ return true;
1171
+ }
1172
+ return false;
1173
+ }
1174
+ handlePlaybackRateChange() {
1175
+ if (this.animation) {
1176
+ this.animation.playbackRate = this.playbackRate;
1177
+ }
1178
+ }
1179
+ /** Clears all keyframe effects caused by this animation and aborts its playback. */
1180
+ async cancel() {
1181
+ this.animation?.cancel();
1182
+ }
1183
+ /** Sets the playback time to the end of the animation corresponding to the current playback direction. */
1184
+ async finish() {
1185
+ this.animation?.finish();
1186
+ }
1187
+ render() {
1188
+ return (index.h(index.Host, null, index.h("slot", { ref: (slot) => (this.defaultSlot = slot), onSlotchange: this.handleSlotChange })));
1189
+ }
1190
+ static get watchers() { return {
1191
+ "name": ["handleAnimationChange"],
1192
+ "delay": ["handleAnimationChange"],
1193
+ "direction": ["handleAnimationChange"],
1194
+ "duration": ["handleAnimationChange"],
1195
+ "easing": ["handleAnimationChange"],
1196
+ "endDelay": ["handleAnimationChange"],
1197
+ "fill": ["handleAnimationChange"],
1198
+ "iterations": ["handleAnimationChange"],
1199
+ "iterationStart": ["handleAnimationChange"],
1200
+ "keyframes": ["handleAnimationChange"],
1201
+ "play": ["handlePlayChange"],
1202
+ "playbackRate": ["handlePlaybackRateChange"]
1203
+ }; }
1204
+ };
1205
+ NanoAnimation.style = ":host {\n display: contents;\n }";
1206
+
1207
+ exports.nano_animation = NanoAnimation;
1208
+
1209
+ //# sourceMappingURL=nano-animation.cjs.entry.js.map