Skip to content

goat-io/formio-survey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formio-survey

Create beautiful (Typeform inspired) surveys using Form.io. Formio-survey will help you render even the most logic heavy / complex surveys.

formio-survey

Installation

npm install formio-survey

or YARN

yarn add formio-survey

Or just use directly with UNPKG

<link rel='stylesheet' href='https://www.unpkg.com/formio-survey@1.0.1/dist/style.css'>
<script src="https://www.unpkg.com/formio-survey@1.0.1/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"
/>

Usage

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",
  },
});

About

A Typeform inspired Formio render

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published