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:

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