This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # from a input.mov file with transparency | |
| avconvert -s "input.mov" --replace -p PresetHEVC1920x1080WithAlpha --multipass -o "output.mov" & | |
| INPUT="input.mov" OUTPUT="output.webm" CRF=45 EFFORT="good" bash -c 'ffmpeg -y -i "$INPUT" -pix_fmt yuva420p -an -c:v libvpx-vp9 -crf "$CRF" -b:v 0 -deadline "$EFFORT" -threads 4 -lag-in-frames 25 -row-mt 1 -pass 1 -f null /dev/null && ffmpeg -y -i "$INPUT" -pix_fmt yuva420p -an -c:v libvpx-vp9 -crf "$CRF" -b:v 0 -deadline "$EFFORT" -threads 4 -lag-in-frames 25 -row-mt 1 -pass 2 "$OUTPUT"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -d = duration per frame 40ms per frame (25fps) | |
| # -loop 1 = disable looping (use 0 for infinite looping) | |
| img2webp -d 40 -min_size -lossy -q 85 -loop 1 frame-* -o animated.webp | |
| # for lossless (with CMS with image compression for example) | |
| img2webp -d 40 -min_size -lossless -loop 1 -q 100 frame-* -o animated.webp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "gsap.from()": { | |
| "prefix": "gsf", | |
| "body": [ | |
| "gsap.from(${1:el}, {${2:vars}, duration: ${3:0.8}, ease: '${4:power3.out}'});" | |
| ], | |
| "description": "gsap.from()" | |
| }, | |
| "gsap.to()": { | |
| "prefix": "gst", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "postinstall": "yarn add ./gsap-bonus.tgz --ignore-scripts" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + |