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