JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://vuejs.org/js/vue.min.js"></script>
<link rel="stylesheet" href="https://rawgit.com/lykmapipo/themify-icons/master/css/themify-icons.css">
<link rel="stylesheet" href="https://rawgit.com/cristijora/vue-form-wizard/master/dist/vue-form-wizard.min.css">
<script src="https://rawgit.com/cristijora/vue-form-wizard/master/dist/vue-form-wizard.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.5.2/animate.min.css">
<div id="app">
<div>
<form-wizard @on-complete="onComplete" shape="square" color="#3498db">
<tab-content title="Personal details" icon="ti-user">
My first tab content
</tab-content>
<tab-content title="Additional Info" icon="ti-settings">
My second tab content
</tab-content>
<tab-content title="Last step" icon="ti-check">
Yuhuuu! This seems pretty damn simple
</tab-content>
</form-wizard>
</div>
</div>
SCSS
.wizard-tab-content {
display: flex; // to avoid horizontal scroll when animating
.wizard-tab-container {
display: block;
animation: fadeInRight 0.3s;
}
}
JavaScript
Vue.use(VueFormWizard)
new Vue({
el: '#app',
methods: {
onComplete: function() {
alert('Yay. Done!');
}
}
})