[{"data":1,"prerenderedAt":689,"buildId":690},["ShallowReactive",2],{"-overview-module-utilities":3,"-overview-module-utilities-surround":587,"navigation_docs":598},{"id":4,"title":5,"body":6,"description":578,"extension":579,"links":578,"meta":580,"navigation":581,"path":583,"seo":584,"stem":585,"__hash__":586},"docs\u002F2.overview\u002F4.module-utilities.md","Module Utilities",{"type":7,"value":8,"toc":572},"minimark",[9,18,23,30,37,53,63,559,568],[10,11,12,13,17],"p",{},"This modules aims to provide a few components and helpers for an easier and more seamless integration of Ionic's composables or functions in your app. We currently have the one ",[14,15,16],"code",{},"IonAnimation"," component.",[19,20,22],"h2",{"id":21},"components","Components",[24,25,27,29],"h3",{"id":26},"ionanimation-component",[14,28,16],{}," component",[10,31,32,33,36],{},"This component makes using Ionic's ",[14,34,35],{},"createAnimation"," easier. It matches the majority of props directly to the usual Ionic animation object, to make adoption easier.",[10,38,39,40,47,48],{},"For more information, see ",[41,42,46],"a",{"href":43,"rel":44},"https:\u002F\u002Fionicframework.com\u002Fdocs\u002Futilities\u002Fanimations",[45],"nofollow","official Ionic docs"," or check out the ",[41,49,52],{"href":50,"rel":51},"https:\u002F\u002Fgithub.com\u002Fnuxt-modules\u002Fionic\u002Fblob\u002Fmain\u002Fplayground\u002Fpages\u002Ftabs\u002Ftab4.vue",[45],"playground examples",[10,54,55,56,62],{},"You can see how it replaces usage of the regular ",[41,57,60],{"href":58,"rel":59},"https:\u002F\u002Fionicframework.com\u002Fdocs\u002Futilities\u002Fanimations#installation",[45],[14,61,35],{}," function in the code example below:",[64,65,66,291],"code-group",{},[67,68,73],"pre",{"className":69,"code":70,"filename":16,"language":71,"meta":72,"style":72},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Ctemplate>\n  \u003CIonAnimation\n    :duration=\"3000\"\n    :iterations=\"Infinity\"\n    :keyframes=\"[\n      { offset: 0, background: 'red' },\n      { offset: 0.72, background: 'var(--background)' },\n      { offset: 1, background: 'green' },\n    ]\"\n    playOnMount\n  >\n    \u003C!-- Content to animate -->\n  \u003C\u002FIonAnimation>\n\u003C\u002Ftemplate>\n","vue","",[14,74,75,91,100,123,140,155,190,217,244,252,258,264,271,281],{"__ignoreMap":72},[76,77,80,84,88],"span",{"class":78,"line":79},"line",1,[76,81,83],{"class":82},"sMK4o","\u003C",[76,85,87],{"class":86},"swJcz","template",[76,89,90],{"class":82},">\n",[76,92,94,97],{"class":78,"line":93},2,[76,95,96],{"class":82},"  \u003C",[76,98,99],{"class":86},"IonAnimation\n",[76,101,103,106,110,113,116,120],{"class":78,"line":102},3,[76,104,105],{"class":82},"    :",[76,107,109],{"class":108},"spNyl","duration",[76,111,112],{"class":82},"=",[76,114,115],{"class":82},"\"",[76,117,119],{"class":118},"sbssI","3000",[76,121,122],{"class":82},"\"\n",[76,124,126,128,131,133,135,138],{"class":78,"line":125},4,[76,127,105],{"class":82},[76,129,130],{"class":108},"iterations",[76,132,112],{"class":82},[76,134,115],{"class":82},[76,136,137],{"class":82},"Infinity",[76,139,122],{"class":82},[76,141,143,145,148,150,152],{"class":78,"line":142},5,[76,144,105],{"class":82},[76,146,147],{"class":108},"keyframes",[76,149,112],{"class":82},[76,151,115],{"class":82},[76,153,154],{"class":82},"[\n",[76,156,158,161,164,167,170,173,176,178,181,185,187],{"class":78,"line":157},6,[76,159,160],{"class":82},"      { ",[76,162,163],{"class":86},"offset",[76,165,166],{"class":82},": ",[76,168,169],{"class":118},"0",[76,171,172],{"class":82},", ",[76,174,175],{"class":86},"background",[76,177,166],{"class":82},[76,179,180],{"class":82},"'",[76,182,184],{"class":183},"sfazB","red",[76,186,180],{"class":82},[76,188,189],{"class":82}," },\n",[76,191,193,195,197,199,202,204,206,208,210,213,215],{"class":78,"line":192},7,[76,194,160],{"class":82},[76,196,163],{"class":86},[76,198,166],{"class":82},[76,200,201],{"class":118},"0.72",[76,203,172],{"class":82},[76,205,175],{"class":86},[76,207,166],{"class":82},[76,209,180],{"class":82},[76,211,212],{"class":183},"var(--background)",[76,214,180],{"class":82},[76,216,189],{"class":82},[76,218,220,222,224,226,229,231,233,235,237,240,242],{"class":78,"line":219},8,[76,221,160],{"class":82},[76,223,163],{"class":86},[76,225,166],{"class":82},[76,227,228],{"class":118},"1",[76,230,172],{"class":82},[76,232,175],{"class":86},[76,234,166],{"class":82},[76,236,180],{"class":82},[76,238,239],{"class":183},"green",[76,241,180],{"class":82},[76,243,189],{"class":82},[76,245,247,250],{"class":78,"line":246},9,[76,248,249],{"class":82},"    ]",[76,251,122],{"class":82},[76,253,255],{"class":78,"line":254},10,[76,256,257],{"class":108},"    playOnMount\n",[76,259,261],{"class":78,"line":260},11,[76,262,263],{"class":82},"  >\n",[76,265,267],{"class":78,"line":266},12,[76,268,270],{"class":269},"sHwdD","    \u003C!-- Content to animate -->\n",[76,272,274,277,279],{"class":78,"line":273},13,[76,275,276],{"class":82},"  \u003C\u002F",[76,278,16],{"class":86},[76,280,90],{"class":82},[76,282,284,287,289],{"class":78,"line":283},14,[76,285,286],{"class":82},"\u003C\u002F",[76,288,87],{"class":86},[76,290,90],{"class":82},[67,292,295],{"className":69,"code":293,"filename":294,"language":71,"meta":72,"style":72},"\u003Cscript setup lang=\"ts\">\n\u002F\u002F Template ref of your element\nconst squareRef = ref()\n\n\u002F\u002F Your animation object\nconst animation = createAnimation()\n  .addElement(squareRef.value)\n  .duration(3000)\n  .iterations(Infinity)\n  .keyframes([\n    { offset: 0, background: 'red' },\n    { offset: 0.72, background: 'var(--background)' },\n    { offset: 1, background: 'green' },\n  ])\n\nonMounted(() => {\n  animation.play()\n})\n\u003C\u002Fscript>\n","Manual usage",[14,296,297,321,326,344,350,355,369,386,400,412,421,452,477,502,507,512,529,542,550],{"__ignoreMap":72},[76,298,299,301,304,307,310,312,314,317,319],{"class":78,"line":79},[76,300,83],{"class":82},[76,302,303],{"class":86},"script",[76,305,306],{"class":108}," setup",[76,308,309],{"class":108}," lang",[76,311,112],{"class":82},[76,313,115],{"class":82},[76,315,316],{"class":183},"ts",[76,318,115],{"class":82},[76,320,90],{"class":82},[76,322,323],{"class":78,"line":93},[76,324,325],{"class":269},"\u002F\u002F Template ref of your element\n",[76,327,328,331,335,337,341],{"class":78,"line":102},[76,329,330],{"class":108},"const",[76,332,334],{"class":333},"sTEyZ"," squareRef ",[76,336,112],{"class":82},[76,338,340],{"class":339},"s2Zo4"," ref",[76,342,343],{"class":333},"()\n",[76,345,346],{"class":78,"line":125},[76,347,349],{"emptyLinePlaceholder":348},true,"\n",[76,351,352],{"class":78,"line":142},[76,353,354],{"class":269},"\u002F\u002F Your animation object\n",[76,356,357,359,362,364,367],{"class":78,"line":157},[76,358,330],{"class":108},[76,360,361],{"class":333}," animation ",[76,363,112],{"class":82},[76,365,366],{"class":339}," createAnimation",[76,368,343],{"class":333},[76,370,371,374,377,380,383],{"class":78,"line":192},[76,372,373],{"class":82},"  .",[76,375,376],{"class":339},"addElement",[76,378,379],{"class":333},"(squareRef",[76,381,382],{"class":82},".",[76,384,385],{"class":333},"value)\n",[76,387,388,390,392,395,397],{"class":78,"line":219},[76,389,373],{"class":82},[76,391,109],{"class":339},[76,393,394],{"class":333},"(",[76,396,119],{"class":118},[76,398,399],{"class":333},")\n",[76,401,402,404,406,408,410],{"class":78,"line":246},[76,403,373],{"class":82},[76,405,130],{"class":339},[76,407,394],{"class":333},[76,409,137],{"class":82},[76,411,399],{"class":333},[76,413,414,416,418],{"class":78,"line":254},[76,415,373],{"class":82},[76,417,147],{"class":339},[76,419,420],{"class":333},"([\n",[76,422,423,426,429,432,435,438,441,443,446,448,450],{"class":78,"line":260},[76,424,425],{"class":82},"    {",[76,427,428],{"class":86}," offset",[76,430,431],{"class":82},":",[76,433,434],{"class":118}," 0",[76,436,437],{"class":82},",",[76,439,440],{"class":86}," background",[76,442,431],{"class":82},[76,444,445],{"class":82}," '",[76,447,184],{"class":183},[76,449,180],{"class":82},[76,451,189],{"class":82},[76,453,454,456,458,460,463,465,467,469,471,473,475],{"class":78,"line":266},[76,455,425],{"class":82},[76,457,428],{"class":86},[76,459,431],{"class":82},[76,461,462],{"class":118}," 0.72",[76,464,437],{"class":82},[76,466,440],{"class":86},[76,468,431],{"class":82},[76,470,445],{"class":82},[76,472,212],{"class":183},[76,474,180],{"class":82},[76,476,189],{"class":82},[76,478,479,481,483,485,488,490,492,494,496,498,500],{"class":78,"line":273},[76,480,425],{"class":82},[76,482,428],{"class":86},[76,484,431],{"class":82},[76,486,487],{"class":118}," 1",[76,489,437],{"class":82},[76,491,440],{"class":86},[76,493,431],{"class":82},[76,495,445],{"class":82},[76,497,239],{"class":183},[76,499,180],{"class":82},[76,501,189],{"class":82},[76,503,504],{"class":78,"line":283},[76,505,506],{"class":333},"  ])\n",[76,508,510],{"class":78,"line":509},15,[76,511,349],{"emptyLinePlaceholder":348},[76,513,515,518,520,523,526],{"class":78,"line":514},16,[76,516,517],{"class":339},"onMounted",[76,519,394],{"class":333},[76,521,522],{"class":82},"()",[76,524,525],{"class":108}," =>",[76,527,528],{"class":82}," {\n",[76,530,532,535,537,540],{"class":78,"line":531},17,[76,533,534],{"class":333},"  animation",[76,536,382],{"class":82},[76,538,539],{"class":339},"play",[76,541,343],{"class":86},[76,543,545,548],{"class":78,"line":544},18,[76,546,547],{"class":82},"}",[76,549,399],{"class":333},[76,551,553,555,557],{"class":78,"line":552},19,[76,554,286],{"class":82},[76,556,303],{"class":86},[76,558,90],{"class":82},[560,561,564,565,567],"callout",{"color":562,"icon":563},"info","i-lucide-info","Currently component doesn't support grouped and chained animations. For that usage we still recommend using ",[14,566,35],{}," by itself",[569,570,571],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":72,"searchDepth":93,"depth":93,"links":573},[574],{"id":21,"depth":93,"text":22,"children":575},[576],{"id":26,"depth":102,"text":577},"IonAnimation component",null,"md",{},{"icon":582},"uil:layer-group","\u002Foverview\u002Fmodule-utilities",{"title":5,"description":578},"2.overview\u002F4.module-utilities","nuYxuhmGdtNXvdBJo5WT366xNpPal5PBmuScq1sQhvw",[588,593],{"title":589,"path":590,"stem":591,"description":578,"icon":592,"children":-1},"Ionic Auto-Imports","\u002Foverview\u002Fionic-auto-imports","2.overview\u002F3.ionic-auto-imports","uil:channel",{"title":594,"path":595,"stem":596,"description":72,"icon":597,"children":-1},"Icons","\u002Foverview\u002Ficons","2.overview\u002F5.icons","uil:illustration",[599,631,655],{"icon":600,"redirect":601,"title":602,"path":603,"stem":604,"children":605,"page":630},"heroicons-outline:star","\u002Fget-started\u002Fintroduction","Get Started","\u002Fget-started","1.get-started",[606,610,615,620,625],{"title":607,"path":601,"stem":608,"icon":609},"Introduction","1.get-started\u002F1.introduction","uil:info-circle",{"title":611,"path":612,"stem":613,"icon":614},"Installation","\u002Fget-started\u002Finstallation","1.get-started\u002F2.installation","uil:play-circle",{"title":616,"path":617,"stem":618,"icon":619},"Configuration","\u002Fget-started\u002Fconfiguration","1.get-started\u002F3.configuration","uil:wrench",{"title":621,"path":622,"stem":623,"icon":624},"Enabling Capacitor","\u002Fget-started\u002Fenabling-capacitor","1.get-started\u002F4.enabling-capacitor","nonicons:capacitor-16",{"title":626,"path":627,"stem":628,"icon":629},"Watchouts","\u002Fget-started\u002Fwatch-outs","1.get-started\u002F5.watch-outs","uil:exclamation-triangle",false,{"icon":632,"redirect":633,"title":634,"path":635,"stem":636,"children":637,"page":630},"heroicons-outline:sparkles","\u002Foverview\u002Frouting","Overview","\u002Foverview","2.overview",[638,642,647,648,649,650],{"title":639,"path":633,"stem":640,"icon":641},"Routing","2.overview\u002F1.routing","uil:sign-alt",{"title":643,"path":644,"stem":645,"icon":646},"Theming","\u002Foverview\u002Ftheming","2.overview\u002F2.theming","uil:palette",{"title":589,"path":590,"stem":591,"icon":592},{"title":5,"path":583,"stem":585,"icon":582},{"title":594,"path":595,"stem":596,"icon":597},{"title":651,"path":652,"stem":653,"icon":654},"Deployment","\u002Foverview\u002Fdeployment","2.overview\u002F6.deployment","uil:rocket",{"icon":656,"redirect":657,"title":658,"path":659,"stem":660,"children":661,"page":630},"heroicons-outline:bookmark-alt","\u002Fcookbook\u002Fcustomising-app-vue","Cookbook","\u002Fcookbook","3.cookbook",[662,665,669,673,677,681,685],{"title":663,"path":657,"stem":664},"Customising app.vue","3.cookbook\u002F1.customising-app-vue",{"title":666,"path":667,"stem":668},"Local Development","\u002Fcookbook\u002Flocal-development","3.cookbook\u002F2.local-development",{"title":670,"path":671,"stem":672},"App Tabs","\u002Fcookbook\u002Fapp-tabs","3.cookbook\u002F3.app-tabs",{"title":674,"path":675,"stem":676},"useHead \u002F Page Meta","\u002Fcookbook\u002Fpage-metadata","3.cookbook\u002F4.page-metadata",{"title":678,"path":679,"stem":680},"iOS and Android Apps","\u002Fcookbook\u002Fcreating-ios-android-apps","3.cookbook\u002F5.creating-ios-android-apps",{"title":682,"path":683,"stem":684},"Web And Device","\u002Fcookbook\u002Fweb-and-device","3.cookbook\u002F6.web-and-device",{"title":686,"path":687,"stem":688},"Live Updates","\u002Fcookbook\u002Flive-updates","3.cookbook\u002F7.live-updates",1795608203490,"1d8de719-76dd-4431-8503-a56c8caa5d09"]