Superform by Delta Clan
✨ ClonablesSocialResourcesSuperform Home
v2
v2
  • 🏁Getting Started
    • Introduction
    • Quick Start
  • 🫀Essentials
    • Form Container
    • Step Container
    • Navigation - Overview
      • Direct
      • Logic / Conditional
      • Hook
    • Variables
      • Form Data ($f)
      • Step Index ($s)
      • Progress Percentage ($p)
      • Scoring Variables ($v)
    • Progress Bar
    • Reset
    • Radio Groups
    • Checkbox Groups
    • Cheatsheet
  • ⚙️Global Options
    • Step Delay Controls
    • Animations
      • Step Animation
      • Step Animation Duration
      • Step Animation Ease
    • Save Data & Progress
    • Pre-fill Form
    • Prevent Content Flash
    • Debug
    • Third-party Integrations
    • Cheatsheet
  • 🎛️Input Validation & Errors
    • Validation
      • length()
      • words()
      • minmax()
      • checkbox()
      • must()
      • hook()
    • Error Management
      • Automatic Error Setup
      • Manual Error Setup
  • ⚡Reactivity
    • Update Text
    • Visibility
    • Class Toggle
    • Value
    • Set Attribute
  • 🔢Score Tracking
    • Score Setup & Calculation
    • Score Ranking
  • ⌨️Accessibility
    • Enter & Backspace Bindings (↩, ⌫)
    • Checkbox & Radio Bindings
  • 🛠️Javascript SDK
    • Intro to Superform API
    • Superform Instance
    • Cheatsheet
  • 📖Additional Resources
    • WTF is an expression ? 🆕
    • Integrations
    • Tutorials
    • Changelog
    • FAQ 🚧
    • Join Discord
Powered by GitBook
On this page

Was this helpful?

  1. Global Options
  2. Animations

Step Animation

Control the transition style between form steps.

Setup

Attribute: sf-step-animation

Options: fade, slide-top, slide-left, slide-bottom, slide-right, none

Default: fade

Where: Form Container

Description: Specifies the animation type to be used for transitions between steps in a multi-step form, enhancing visual appeal and flow.

How to use: Can work in conjunction with:

  • sf-step-animation-duration (see Step Animation Duration)

  • sf-step-animation-ease (see Step Animation Ease)

Enchanced Animation ⚡ Each animation type has a reverse animation for seamless backward navigation. For instance, slide-top is paired with slide-bottom to maintain cohesive transitions.

HTML Example

index.html
<!-- Form Container with Animation Settings -->
<div sf="myForm" sf-step-animation="slide-top">
    <form>
        <!-- Step 1 -->
        <div sf-step="step1">
            <!-- Content for Step 1 -->
            <button sf-goto="next">Next</button>
        </div>

        <!-- Step 2 -->
        <div sf-step="step2">
            <!-- Content for Step 2 -->
        </div>
    </form>
</div>

Webflow Example

Last updated 11 months ago

Was this helpful?

⚙️
When user navigates to next step there is a "slide-top" animation, but when user navigates back 1 step there is a reverse "slide-bottom" animation.
VIDEO: Adding sf-step-animation = slide-bottom to a Form Container.