acf
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/evomark/public_html/wp-includes/functions.php on line 6121Having tried many different carousel components over the years, we never quite found one that way built with a Vue-first approach, was compatible with SSR and still provided all the functionality we require… So we made one.<\/p>\n\n\n\n
1<\/span><<\/span>script<\/span> <\/span>setup<\/span>><\/span><\/span><\/span><\/div>2<\/span><\/span>import<\/span> <\/span>{<\/span> <\/span>EvoVueCarousel<\/span>,<\/span> <\/span>EVO_VUE_CAROUSEL_MODE<\/span> <\/span>}<\/span> <\/span>from<\/span> <\/span>\"evo-vue-carousel\"<\/span>;<\/span><\/span><\/span><\/div>3<\/span><\/span><\/<\/span>script<\/span>><\/span><\/span><\/span><\/div>4<\/span>\n<\/span><\/span><\/div>5<\/span><\/span><<\/span>template<\/span>><\/span><\/span><\/span><\/div>6<\/span>\t<\/span><<\/span>EvoVueCarousel<\/span> <\/span><\/span><\/div>7<\/span>\t\t<\/span>wrap<\/span> <\/span><\/span><\/div>8<\/span>\t\t<\/span>per-page<\/span>=<\/span>\"<\/span>2<\/span>\"<\/span> <\/span><\/span><\/div>9<\/span>\t\t<\/span>slide-by<\/span>=<\/span>\"<\/span>1<\/span>\"<\/span> <\/span><\/span><\/div>10<\/span>\t\t<\/span>:mode<\/span>=<\/span>\"<\/span>EVO_VUE_CAROUSEL_MODE.slider<\/span>\"<\/span><\/span><\/span><\/div>11<\/span>\t\t<\/span>:responsive<\/span>=<\/span>\"<\/span>{<\/span><\/span><\/div>12<\/span>\t\t\t1280: {<\/span><\/span><\/div>13<\/span>\t\t\t\tperPage: 3<\/span><\/span><\/div>14<\/span>\t\t\t}<\/span><\/span><\/div>15<\/span>\t\t}<\/span>\"<\/span><\/span><\/span><\/div>16<\/span>\t<\/span>><\/span><\/span><\/span><\/div>17<\/span>\t\t<\/span><<\/span>div<\/span> <\/span>v-for<\/span>=<\/span>\"<\/span>slide in slides<\/span>\"<\/span> <\/span>:key<\/span>=<\/span>\"<\/span>slide.id<\/span>\"<\/span>><\/span><\/span><\/span><\/div>18<\/span>\t\t\t<\/span><<\/span>img<\/span> <\/span>:src<\/span>=<\/span>\"<\/span>slide.src<\/span>\"<\/span> <\/span>class<\/span>=<\/span>\"<\/span>w-full h-full object-cover<\/span>\"<\/span> <\/span>\/><\/span><\/span><\/span><\/div>19<\/span>\t\t<\/span><\/<\/span>div<\/span>><\/span><\/span><\/span><\/div>20<\/span>\t<\/span><\/<\/span>EvoVueCarousel<\/span>><\/span><\/span><\/span><\/div>21<\/span><\/span><\/<\/span>template<\/span>><\/span><\/span><\/div><\/code><\/pre><\/div>\n\n\n\nUsing with Tailwind<\/h2>\n\n\n\n
Evo Vue Carousel was built for use with projects using Tailwind as its CSS framwork. And does not presently work without it.<\/p>\n\n\n\n
So as to tell your project which classes Evo Vue Carousel needs, you should import the following function and pass the (spread) output to your content array as shown below.<\/p>\n\n\n\n
import<\/span> <\/span>{<\/span> evoVueCarouselTwContent <\/span>}<\/span> <\/span>from<\/span> <\/span>\"evo-vue-carousel\/tailwind\"<\/span>;<\/span><\/span><\/div>\n<\/span><\/div><\/span>export<\/span> <\/span>default<\/span> <\/span>{<\/span><\/span><\/div>\t<\/span>content<\/span>:<\/span> <\/span>[<\/span><\/span><\/div>\t\t<\/span>\/\/ Your other content<\/span><\/span><\/div>\t\t<\/span>...<\/span>evoVueCarouselTwContent<\/span>(<\/span>)<\/span><\/span><\/div>\t<\/span>]<\/span>,<\/span><\/span><\/div>\t<\/span>\/\/ Other config<\/span><\/span><\/div><\/span>}<\/span><\/div><\/code><\/pre><\/div>\n\n\n\nProps<\/h2>\n\n\n\n