You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
render Generate an image from css|cssd|html file or from CodePen link
26
+
render Generate an image/video from css|cssd|html file or CodePen link
27
27
preview Open a window to preview the css|cssd file
28
28
generate Generate code using css-doodle generators
29
-
config Display/set the configurations
29
+
config Display/set configurations
30
30
use Shorthand to fetch and use a custom version of css-doodle
31
-
parse Print the parsed tokens, helped to debug on development
31
+
parse Print the parsed tokens, helped to debug in development
32
32
upgrade Upgrade CLI to the latest version
33
33
```
34
34
35
35
## Commands
36
36
37
37
### render
38
-
Generate an image from the css-doodle source file. The source file can be a `.css`, `.cssd`, `.html` file or CodePen link.
38
+
Generate an image/video from the css-doodle source file. The source file can be a `.css`, `.cssd`, `.html` file or CodePen link.
39
39
40
-
*`-o, --output`: Custom output filename of the generated image.
41
-
*`-x, --scale`: Scale factor of the generated image, defaults to 1.
40
+
*`-o, --output`: Custom output filename of the generated result.
41
+
*`-x, --scale`: Scale factor of the generated result, defaults to `2` for images, `1` for videos.
42
42
*`-s, --selector`: CSS selector to target the rendered node, defaults to `css-doodle`.
43
-
*`-d, --delay`: Delay after the image is rendered, e.g, `2s`.
43
+
*`-d, --delay`: Delay time before taking screenshot/screencast, e.g, `2s`.
44
44
*`-t, --time`: Record screen for a specific time, e.g, `10s`.
45
-
*`-ws, --window-size`: The size of the rendered window, e.g, `800x600`, defaults to `1600x900`.
46
-
*`--mp4`: Transform the generated `webm` file into `mp4`.
45
+
*`-ws, --window-size`: The size of the rendered window, defaults to `1600x1200` for images, `1200x900` for videos.
46
+
*`--mp4`: Use `mp4` as the generated video format.
47
47
48
48
```bash
49
49
cssd render
@@ -59,7 +59,9 @@ Screen recording:
59
59
cssd render -t 10s
60
60
```
61
61
62
-
By default the generated video is in `webm` format, you can transform it automatically into `mp4` by adding `--mp4` option, or use an output filename with `.mp4` extension.
62
+
By default the generated video is in `webm` format,
63
+
you can transform it automatically into `mp4` by adding `--mp4` option,
0 commit comments