mirror of
https://github.com/webstudio-is/webstudio.git
synced 2025-03-14 09:57:02 +00:00
## Description ref #2645 Proof of Concept for the Animation Component Using ScrollTimeline For FF and Safari `scroll-timeline-polyfill` is used. SSR Support https://animate.development.webstudio.is/playground Storybook Part 1. https://6382151c8b47d4399fb9fc69-limlyrmprp.chromatic.com/?path=/story/sdk-components-animation-scroll-animations--in-out Next steps: - Add stories with additional examples i.e. closest usage, images etc. https://scroll-driven-animations.style/ - Add support to view animations - Add view animations examples - Add enter/leave actions and animations support - Builder UI - Add lottie, rive etc compatibility (should work through context.getAnimations()[0].effect.getComputedTiming().progress) ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
25 lines
729 B
Bash
Executable File
25 lines
729 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BRANCH="$1"
|
|
|
|
|
|
git submodule update --init --recursive
|
|
|
|
git submodule foreach '
|
|
# If a branch parameter is provided, use it; otherwise, determine the branch dynamically
|
|
if [ -n "'"$BRANCH"'" ]; then
|
|
SUBMODULE_BRANCH="'"$BRANCH"'"
|
|
else
|
|
SUBMODULE_BRANCH=$(git -C $toplevel rev-parse --abbrev-ref HEAD)
|
|
fi
|
|
|
|
echo "Checking out \"$SUBMODULE_BRANCH\" branch in \"$name\" submodule"
|
|
|
|
# Check if the branch exists in the remote
|
|
if git ls-remote --exit-code --heads origin "$SUBMODULE_BRANCH" > /dev/null; then
|
|
git checkout "$SUBMODULE_BRANCH" && git pull origin "$SUBMODULE_BRANCH"
|
|
else
|
|
# Fallback to "main" if the branch does not exist
|
|
git checkout "main" && git pull origin "main"
|
|
fi
|
|
' |