{
  "id": "mui_toggle",
  "name": "Toggle",
  "width": 120,
  "height": 72,
  "cornerRadius": 0,
  "fit": "Contain",
  "backgroundColor": "#FFFFFF",
  "opacity": 1,
  "objects": [
    {
      "id": "track",
      "name": "Track",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 60,
        "y": 36,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 0.16,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [],
      "width": 88,
      "height": 48,
      "geometry": {
        "type": "Rectangle",
        "width": 88,
        "height": 48,
        "cornerRadius": 24,
        "corner_radius": [
          24,
          24,
          24,
          24
        ]
      },
      "style": {
        "fill": {
          "type": "Solid",
          "color": "#17171C",
          "opacity": 1
        },
        "stroke": {
          "color": "transparent",
          "width": 0
        }
      },
      "zIndex": 0,
      "logicProperties": [
        {
          "id": "track_lp_fill",
          "name": "fill",
          "valueType": "variable",
          "variableId": "in_ink"
        }
      ]
    },
    {
      "id": "track_on",
      "name": "Track / on",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 60,
        "y": 36,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 0,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [],
      "width": 88,
      "height": 48,
      "geometry": {
        "type": "Rectangle",
        "width": 88,
        "height": 48,
        "cornerRadius": 24,
        "corner_radius": [
          24,
          24,
          24,
          24
        ]
      },
      "style": {
        "fill": {
          "type": "Solid",
          "color": "#FF5A1F",
          "opacity": 1
        },
        "stroke": {
          "color": "transparent",
          "width": 0
        }
      },
      "zIndex": 1,
      "logicProperties": [
        {
          "id": "track_on_lp_fill",
          "name": "fill",
          "valueType": "variable",
          "variableId": "in_accent"
        }
      ]
    },
    {
      "id": "ring",
      "name": "Ring",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 80,
        "y": 36,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 0,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [],
      "width": 38,
      "height": 38,
      "geometry": {
        "type": "Ellipse",
        "width": 38,
        "height": 38
      },
      "style": {
        "fill": {
          "type": "None",
          "color": "transparent",
          "opacity": 0
        },
        "stroke": {
          "color": "#FF5A1F",
          "width": 2,
          "opacity": 1,
          "isEnabled": true
        }
      },
      "zIndex": 2,
      "logicProperties": [
        {
          "id": "ring_lp_stroke",
          "name": "stroke",
          "valueType": "variable",
          "variableId": "in_accent"
        }
      ]
    },
    {
      "id": "knob",
      "name": "Knob",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 40,
        "y": 36,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 1,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [],
      "width": 38,
      "height": 38,
      "geometry": {
        "type": "Rectangle",
        "width": 38,
        "height": 38,
        "cornerRadius": 19
      },
      "style": {
        "fill": {
          "type": "Solid",
          "color": "#FFFFFF",
          "opacity": 1
        },
        "stroke": {
          "color": "transparent",
          "width": 0
        },
        "shadow": {
          "color": "#000000",
          "blur": 8,
          "offsetX": 0,
          "offsetY": 3,
          "spread": 0,
          "opacity": 22,
          "isEnabled": true
        }
      },
      "zIndex": 3,
      "logicProperties": [
        {
          "id": "knob_lp_fill",
          "name": "fill",
          "valueType": "variable",
          "variableId": "in_surface"
        }
      ]
    },
    {
      "id": "toggle_hit",
      "name": "Toggle hit",
      "type": "Shape",
      "isVisible": true,
      "isLocked": false,
      "transform": {
        "x": 60,
        "y": 36,
        "rotation": 0,
        "scale_x": 1,
        "scale_y": 1,
        "opacity": 1,
        "skew_x": 0,
        "skew_y": 0
      },
      "children": [],
      "interactions": [
        {
          "id": "toggle_hit_onClick_0",
          "event": "onClick",
          "trigger": "onClick",
          "triggers": [
            "onClick",
            "Click"
          ],
          "action": "Toggle Boolean",
          "targetInputId": "in_checked"
        },
        {
          "id": "toggle_hit_onPointerEnter_1",
          "event": "onPointerEnter",
          "trigger": "onPointerEnter",
          "triggers": [
            "onPointerEnter"
          ],
          "action": "fireTrigger",
          "targetInputId": "in_toggle_hover"
        },
        {
          "id": "toggle_hit_onPointerLeave_2",
          "event": "onPointerLeave",
          "trigger": "onPointerLeave",
          "triggers": [
            "onPointerLeave"
          ],
          "action": "fireTrigger",
          "targetInputId": "in_toggle_leave"
        }
      ],
      "width": 104,
      "height": 64,
      "geometry": {
        "type": "Rectangle",
        "width": 104,
        "height": 64,
        "cornerRadius": 0,
        "corner_radius": [
          0,
          0,
          0,
          0
        ]
      },
      "style": {
        "fill": {
          "type": "Solid",
          "color": "#000000",
          "opacity": 0.001
        },
        "stroke": {
          "color": "transparent",
          "width": 0
        }
      },
      "zIndex": 4
    }
  ],
  "animations": [
    {
      "id": "anim_switch_on",
      "name": "Switch on",
      "duration": 0.7,
      "loop": false,
      "tracks": [
        {
          "id": "t_6",
          "object_id": "knob",
          "property": "transform.x",
          "keyframes": [
            {
              "id": "k_7",
              "time": 0,
              "value": 40,
              "easing": "easeInOutCubic"
            },
            {
              "id": "k_8",
              "time": 0.16,
              "value": 60,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_9",
              "time": 0.46,
              "value": 80,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_10",
          "object_id": "knob",
          "property": "geometry.width",
          "keyframes": [
            {
              "id": "k_11",
              "time": 0,
              "value": 38,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_12",
              "time": 0.16,
              "value": 55.1,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_13",
              "time": 0.46,
              "value": 38,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_14",
          "object_id": "track_on",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_15",
              "time": 0,
              "value": 0,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_16",
              "time": 0.3,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_17",
          "object_id": "ring",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_18",
              "time": 0,
              "value": 0,
              "easing": "linear"
            },
            {
              "id": "k_19",
              "time": 0.2,
              "value": 0,
              "easing": "linear"
            },
            {
              "id": "k_20",
              "time": 0.24,
              "value": 0.7,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_21",
              "time": 0.7,
              "value": 0,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_22",
          "object_id": "ring",
          "property": "transform.scale_x",
          "keyframes": [
            {
              "id": "k_23",
              "time": 0,
              "value": 1,
              "easing": "linear"
            },
            {
              "id": "k_24",
              "time": 0.2,
              "value": 1,
              "easing": "easeOutQuart"
            },
            {
              "id": "k_25",
              "time": 0.7,
              "value": 1.9,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_26",
          "object_id": "ring",
          "property": "transform.scale_y",
          "keyframes": [
            {
              "id": "k_27",
              "time": 0,
              "value": 1,
              "easing": "linear"
            },
            {
              "id": "k_28",
              "time": 0.2,
              "value": 1,
              "easing": "easeOutQuart"
            },
            {
              "id": "k_29",
              "time": 0.7,
              "value": 1.9,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    },
    {
      "id": "anim_switch_off",
      "name": "Switch off",
      "duration": 0.46,
      "loop": false,
      "tracks": [
        {
          "id": "t_30",
          "object_id": "knob",
          "property": "transform.x",
          "keyframes": [
            {
              "id": "k_31",
              "time": 0,
              "value": 80,
              "easing": "easeInOutCubic"
            },
            {
              "id": "k_32",
              "time": 0.16,
              "value": 60,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_33",
              "time": 0.46,
              "value": 40,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_34",
          "object_id": "knob",
          "property": "geometry.width",
          "keyframes": [
            {
              "id": "k_35",
              "time": 0,
              "value": 38,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_36",
              "time": 0.16,
              "value": 55.1,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_37",
              "time": 0.46,
              "value": 38,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_38",
          "object_id": "track_on",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_39",
              "time": 0,
              "value": 1,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_40",
              "time": 0.3,
              "value": 0,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_41",
          "object_id": "ring",
          "property": "transform.opacity",
          "keyframes": [
            {
              "id": "k_42",
              "time": 0,
              "value": 0,
              "easing": "easeOutQuart"
            },
            {
              "id": "k_43",
              "time": 0.1,
              "value": 0,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_44",
          "object_id": "ring",
          "property": "transform.scale_x",
          "keyframes": [
            {
              "id": "k_45",
              "time": 0,
              "value": 1,
              "easing": "easeOutQuart"
            },
            {
              "id": "k_46",
              "time": 0.1,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_47",
          "object_id": "ring",
          "property": "transform.scale_y",
          "keyframes": [
            {
              "id": "k_48",
              "time": 0,
              "value": 1,
              "easing": "easeOutQuart"
            },
            {
              "id": "k_49",
              "time": 0.1,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    },
    {
      "id": "anim_toggle_hover_in",
      "name": "Toggle hover in",
      "duration": 0.24,
      "loop": false,
      "tracks": [
        {
          "id": "t_50",
          "object_id": "knob",
          "property": "transform.scale_x",
          "keyframes": [
            {
              "id": "k_51",
              "time": 0,
              "value": 1,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_52",
              "time": 0.24,
              "value": 1.06,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_53",
          "object_id": "knob",
          "property": "transform.scale_y",
          "keyframes": [
            {
              "id": "k_54",
              "time": 0,
              "value": 1,
              "easing": "cubic-bezier(0.2, 0.9, 0.3, 1.35)"
            },
            {
              "id": "k_55",
              "time": 0.24,
              "value": 1.06,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    },
    {
      "id": "anim_toggle_hover_out",
      "name": "Toggle hover out",
      "duration": 0.2,
      "loop": false,
      "tracks": [
        {
          "id": "t_56",
          "object_id": "knob",
          "property": "transform.scale_x",
          "keyframes": [
            {
              "id": "k_57",
              "time": 0,
              "value": 1.06,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_58",
              "time": 0.2,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        },
        {
          "id": "t_59",
          "object_id": "knob",
          "property": "transform.scale_y",
          "keyframes": [
            {
              "id": "k_60",
              "time": 0,
              "value": 1.06,
              "easing": "easeOutCubic"
            },
            {
              "id": "k_61",
              "time": 0.2,
              "value": 1,
              "easing": "easeOutQuart"
            }
          ]
        }
      ]
    }
  ],
  "navigation": [],
  "animationFlow": [],
  "stateVariables": [],
  "stateMachine": {
    "inputs": [
      {
        "id": "in_accent",
        "name": "accent",
        "value": {
          "type": "Text",
          "value": "#FF5A1F",
          "defaultValue": "#FF5A1F"
        }
      },
      {
        "id": "in_surface",
        "name": "surface",
        "value": {
          "type": "Text",
          "value": "#FFFFFF",
          "defaultValue": "#FFFFFF"
        }
      },
      {
        "id": "in_ink",
        "name": "ink",
        "value": {
          "type": "Text",
          "value": "#17171C",
          "defaultValue": "#17171C"
        }
      },
      {
        "id": "in_checked",
        "name": "checked",
        "value": {
          "type": "Boolean",
          "value": false,
          "defaultValue": false
        }
      },
      {
        "id": "in_toggle_hover",
        "name": "Toggle hover",
        "value": {
          "type": "Trigger",
          "value": false,
          "defaultValue": false
        }
      },
      {
        "id": "in_toggle_leave",
        "name": "Toggle leave",
        "value": {
          "type": "Trigger",
          "value": false,
          "defaultValue": false
        }
      },
      {
        "id": "in_toggle_down",
        "name": "Toggle down",
        "value": {
          "type": "Trigger",
          "value": false,
          "defaultValue": false
        }
      }
    ],
    "layers": [
      {
        "id": "layer_switch",
        "name": "Switch",
        "entryStateId": "s_switch_off",
        "states": [
          {
            "id": "s_switch_off",
            "name": "Off",
            "loop": false,
            "transitions": [
              {
                "id": "tr_switch_off_0",
                "targetStateId": "s_switch_on",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_checked",
                    "inputName": "checked",
                    "op": "IsTrue",
                    "value": true
                  },
                  {
                    "inputId": "in_checked",
                    "inputName": "in_checked",
                    "op": "NotEqual",
                    "value": "__never__"
                  }
                ]
              }
            ]
          },
          {
            "id": "s_switch_on",
            "name": "On",
            "animationId": "anim_switch_on",
            "loop": false,
            "transitions": [
              {
                "id": "tr_switch_on_0",
                "targetStateId": "s_switch_back_off",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_checked",
                    "inputName": "checked",
                    "op": "IsFalse",
                    "value": true
                  },
                  {
                    "inputId": "in_checked",
                    "inputName": "in_checked",
                    "op": "NotEqual",
                    "value": "__never__"
                  }
                ]
              }
            ]
          },
          {
            "id": "s_switch_back_off",
            "name": "Back off",
            "animationId": "anim_switch_off",
            "loop": false,
            "transitions": [
              {
                "id": "tr_switch_back_off_0",
                "targetStateId": "s_switch_on",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_checked",
                    "inputName": "checked",
                    "op": "IsTrue",
                    "value": true
                  },
                  {
                    "inputId": "in_checked",
                    "inputName": "in_checked",
                    "op": "NotEqual",
                    "value": "__never__"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "layer_toggle_feel",
        "name": "Toggle feel",
        "entryStateId": "s_toggle_feel_rest",
        "states": [
          {
            "id": "s_toggle_feel_rest",
            "name": "Rest",
            "loop": false,
            "transitions": [
              {
                "id": "tr_toggle_feel_rest_0",
                "targetStateId": "s_toggle_feel_in",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_toggle_hover",
                    "inputName": "Toggle hover",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              }
            ]
          },
          {
            "id": "s_toggle_feel_in",
            "name": "In",
            "animationId": "anim_toggle_hover_in",
            "loop": false,
            "transitions": [
              {
                "id": "tr_toggle_feel_in_0",
                "targetStateId": "s_toggle_feel_out",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_toggle_leave",
                    "inputName": "Toggle leave",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              }
            ]
          },
          {
            "id": "s_toggle_feel_out",
            "name": "Out",
            "animationId": "anim_toggle_hover_out",
            "loop": false,
            "transitions": [
              {
                "id": "tr_toggle_feel_out_0",
                "targetStateId": "s_toggle_feel_in",
                "duration": 0,
                "conditions": [
                  {
                    "inputId": "in_toggle_hover",
                    "inputName": "Toggle hover",
                    "op": "IsTrue",
                    "value": true
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "logicNodes": []
  },
  "physics": {
    "enabled": false,
    "gravity": {
      "x": 0,
      "y": 9.8
    }
  },
  "backgroundVisible": false,
  "seo": {
    "title": "Toggle — Exode Motion UI",
    "description": "A switch with a knob that stretches as it crosses the track and settles with a small overshoot."
  }
}
