Create beautiful (Typeform inspired) surveys using Form.io. Formio-survey will help you render even the most logic heavy / complex surveys.
npm install formio-survey
or YARN
yarn add formio-survey
Or just use directly with UNPKG
<link rel='stylesheet' href='https://www.unpkg.com/[email protected]/dist/style.css'>
<script src="https://www.unpkg.com/[email protected]/dist/index.umd.js"></script>
If you are not using Formio already, import it and it's css dependencies before importing this library
<script src='https://cdn.form.io/formiojs/formio.full.min.js'></script>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
/>
<link
rel='stylesheet'
href='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css'
>
<link
rel='stylesheet'
href='https://cdn.form.io/formiojs/formio.full.min.css'
>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
Formio-survey uses Animate.css to bring to live your survey, you can use any of the available animations
formioSurvey.render({
renderElement: document.getElementById("formio"),
src: "https://zdzvmdwsyjiltzy.form.io/wellness",
animations: {
click: "pulse",
next: "backOutDown",
previous: "backInUp",
},
});