← Back to CSS domain
CSS.setKeyframeKey
Modifies the keyframe rule key text.
Domain: CSS
experimental
Parameters
| Name | Type | Description |
styleSheetId | DOM.StyleSheetId | |
range | SourceRange | |
keyText | string | |
Returns
| Name | Type | Description |
keyText | Value | The resulting key text after modification. |
Example Request
{
"id": 1,
"method": "CSS.setKeyframeKey",
"params": {
"styleSheetId": "styleSheetId-value",
"range": "range-value",
"keyText": "keyText-value"
}
}
Example Response
{
"id": 1,
"result": {
"keyText": "keyText-value"
}
}
Usage in Node.js
const result = await send('CSS.setKeyframeKey', {"styleSheetId": "styleSheetId-value", "range": "range-value", "keyText": "keyText-value"});
console.log(result);
// {"keyText": "keyText-value"}