Skip to content

Open source CapCut alternative.

TypeScript
1.9 KB
Raw Blame
{
  "press": {
    "label": "Press",
    "note": "a finger tapping a button: the element dips to 93% and springs back, and darkens while it is held down when darken is on",
    "slots": [
      "hit"
    ],
    "animate": {
      "scale": [
        {
          "t": 0,
          "v": [
            1,
            1
          ],
          "ease": [
            0.4,
            0,
            0.6,
            1
          ]
        },
        {
          "t": 0.35,
          "v": [
            0.93,
            0.93
          ],
          "ease": [
            0.3,
            0,
            0.2,
            1
          ]
        },
        {
          "t": 1,
          "v": [
            1,
            1
          ]
        }
      ],
      "brightness": [
        {
          "t": 0,
          "v": 1,
          "ease": [
            0.4,
            0,
            0.6,
            1
          ]
        },
        {
          "t": 0.35,
          "v": 0.8,
          "ease": [
            0.3,
            0,
            0.2,
            1
          ]
        },
        {
          "t": 1,
          "v": 1
        }
      ]
    }
  },
  "zap": {
    "label": "Zap",
    "note": "electric arcs crackle over the element: blue-white bolts with a flare where each lands, re-dealt a dozen times a second, sparking up fast and dying out at the end \u2014 the charged beat of a teaser title",
    "slots": [
      "hit"
    ],
    "animate": {
      "zap": [
        {
          "t": 0,
          "v": 0,
          "ease": [
            0.2,
            0,
            0.4,
            1
          ]
        },
        {
          "t": 0.1,
          "v": 1
        },
        {
          "t": 0.75,
          "v": 1,
          "ease": [
            0.4,
            0,
            0.6,
            1
          ]
        },
        {
          "t": 1,
          "v": 0
        }
      ]
    }
  }
}