//This JSON was modified by LateLag (@LateLagMC). Please do not use this document without permission.
{
  "format_version": "1.8.0",
  "animations": {
    "animation.elytra.default": {
      "loop": true,
      "bones": {
        "left_wing": {
          "position": [ 5, 0, 0 ],
          "rotation": [ 15, 0, -15 ]
        },
        "right_wing": {
          "position": [ -5, 0, 0 ],
          "rotation": [ 15, 0, 15 ]
        }
      }
    },
    "animation.elytra.gliding": {
      "loop": true,
      "bones": {
        "body": {
          "rotation": [ 0, 0, 0 ]
        },
        "left_wing": {
          "position": [ 5, 0, 0 ],
          "rotation": [ "variable.ratio = (query.position_delta(1) < 0) ? 1 - math.pow(-query.movement_direction(1), 1.5) : 1; return math.lerp(15, 20, variable.ratio);", 0, "math.lerp(-15, -90, variable.ratio)" ]
        },
        "right_wing": {
          "position": [ -5, 0, 0 ],
          "rotation": [ "variable.ratio = (query.position_delta(1) < 0) ? 1 - math.pow(-query.movement_direction(1), 1.5) : 1; return math.lerp(15, 20, variable.ratio);", 0, "math.lerp(15, 90, variable.ratio)" ]
        }
      }
    },
    "animation.elytra.sleeping": {
      "loop": true,
      "bones": {
        "left_wing": {
          "position": [ 5, 0, 0 ],
          "rotation": [ 15, 0, -15 ]
        },
        "right_wing": {
          "position": [ -5, 0, 0 ],
          "rotation": [ 15, 0, 15 ]
        }
      }
    },
    "animation.elytra.sneaking": {
      "loop": true,
      "bones": {
        "body": {
          "rotation": [ -28.64788, 0, 0 ]
        },
        "left_wing": {
          "position": [ 5, 0, 0 ],
          "rotation": [ 40, 5, -45 ]
        },
        "right_wing": {
          "position": [ -5, 0, 0 ],
          "rotation": [ 40, -5, 45 ]
        }
      }
    },
    "animation.elytra.swimming": {
      "loop": true,
      "bones": {
        "left_wing": {
          "position": [ 5, 0, 0 ],
          "rotation": [ 15, 0, -15 ]
        },
        "right_wing": {
          "position": [ -5, 0, 0 ],
          "rotation": [ 15, 0, 15 ]
        }
      }
    }
  }
}
