Switch Interaction in Framer

Copy component

Switch Interaction in Framer

Copy component

Nandi Muzsik

How can I improve Framer Uni?

Let me know if there’s a missing feature or something that could be improved.

Share feedback

Nandi Muzsik

How can I improve Framer Uni?

Let me know if there’s a missing feature or something that could be improved.

Share feedback

Component

Switch Interaction in Framer

This is a Framer recreation of a switch interaction inspired by Nitish’s original work. Feel free to remix or copy the component into your projects and customize it however you like.

image of Nandi Muzsik
image of Prianca S.
profile image of Nitish Khagwal

Created by

,

and

Predictive completion toggle switch with cursor click
Predictive completion toggle switch with cursor click
Predictive completion toggle switch with cursor click

About the resource

To create this animation, I first built a switch component with two variants: Default and Expanded. Inside the switch, I added a toggle component and checkbox component.

In the default state, the toggle is visible while the checkbox and text are placed on absolute, scaled down, blurred, and set to opacity 0. In the expanded state, the closed toggle moves upward, while the checkbox and text scale back to 1, become sharp, and fade in with opacity 1.

Finally, I connected the two states with a simple click interaction on the toggle to switch between Default and Expanded.

About the resource

To create this animation, I first built a switch component with two variants: Default and Expanded. Inside the switch, I added a toggle component and checkbox component.

In the default state, the toggle is visible while the checkbox and text are placed on absolute, scaled down, blurred, and set to opacity 0. In the expanded state, the closed toggle moves upward, while the checkbox and text scale back to 1, become sharp, and fade in with opacity 1.

Finally, I connected the two states with a simple click interaction on the toggle to switch between Default and Expanded.

About the resource

To create this animation, I first built a switch component with two variants: Default and Expanded. Inside the switch, I added a toggle component and checkbox component.

In the default state, the toggle is visible while the checkbox and text are placed on absolute, scaled down, blurred, and set to opacity 0. In the expanded state, the closed toggle moves upward, while the checkbox and text scale back to 1, become sharp, and fade in with opacity 1.

Finally, I connected the two states with a simple click interaction on the toggle to switch between Default and Expanded.

Predictive completion toggle expanding to show inline suggestion option

The default and expanded variants of the switch component.

Predictive completion toggle expanding to show inline suggestion option

The default and expanded variants of the switch component.

Predictive completion toggle expanding to show inline suggestion option

The default and expanded variants of the switch component.

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

Framer Navigator

Learn the fundamentals of Framer for free.

Build your ideas with ease by learning the basics of website building with Framer.

Nandi portrait's background
Nandi's portrait

More resources

More resources

  • Gradient welcome card with stamps and confirmation message

    Unusual Waitlist Form in Framer

    Component

    Gradient welcome card with stamps and confirmation message

    Unusual Waitlist Form in Framer

    Component

    Gradient welcome card with stamps and confirmation message

    Unusual Waitlist Form in Framer

    Component

  • Thermal image UI with glowing heat-map effect

    Thermal Image Component in Framer

    Component

    Thermal image UI with glowing heat-map effect

    Thermal Image Component in Framer

    Component

    Thermal image UI with glowing heat-map effect

    Thermal Image Component in Framer

    Component