{
 "pack": 1,
 "id": "c4c:beh:reveal",
 "type": "behaviour",
 "version": "1.0.0",
 "name": "Slide in",
 "description": "A prop slides in from a side and settles with a squish.",
 "author": {
  "id": "c4c",
  "name": "Crafts4Class"
 },
 "license": "cc0",
 "remixable": true,
 "derived_from": [
  {
   "id": "tween:studio/behaviors.py",
   "version": "2026-06-08",
   "note": "pose(\"reveal\")"
  }
 ],
 "preview": {
  "moves": [
   "reveal"
  ],
  "seconds": 3.0
 },
 "content_hash": "sha256:adb157746138d3674f114a4495f0d46e838a8ce9ca927e0d1f4682c3775c3520",
 "content": {
  "v": 1,
  "kind": "behaviour",
  "params": {
   "from_dx": 460,
   "t_in": "=min(dur*0.6, 1.2)"
  },
  "scripts": [
   {
    "hat": {
     "on": "start"
    },
    "body": [
     {
      "op": "set",
      "to": {
       "dx": "=from_dx"
      }
     },
     {
      "op": "together",
      "branches": [
       [
        {
         "op": "ramp",
         "to": {
          "dx": 0
         },
         "over": "=max(t_in, 0.1)",
         "ease": "smooth"
        }
       ],
       [
        {
         "op": "for",
         "s": "=max(t_in, 0.1)",
         "body": [
          {
           "op": "wave",
           "ch": "sx",
           "shape": "sin",
           "w": "=pi/max(t_in, 0.1)",
           "amp": 0.04
          },
          {
           "op": "wave",
           "ch": "sy",
           "shape": "sin",
           "w": "=pi/max(t_in, 0.1)",
           "amp": -0.04
          }
         ]
        }
       ]
      ]
     }
    ]
   }
  ],
  "name": "reveal"
 }
}
