Skip to content

Animated bubbles - #44

Open
skywalkerSam wants to merge 1 commit into
mainfrom
things-bubbles
Open

Animated bubbles#44
skywalkerSam wants to merge 1 commit into
mainfrom
things-bubbles

Conversation

@skywalkerSam

@skywalkerSam skywalkerSam commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Added a subtle animated bubble effect to the About page’s introductory “Things” heading.
  • Style

    • Updated the heading presentation by replacing the trailing punctuation with animated square elements.

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
skywalkersam-dev Ready Ready Preview Aug 10, 2026 12:42pm

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds a repeating GSAP animation for three bubble elements in the About intro. It also disables build scripts for sharp and unrs-resolver in the pnpm workspace configuration.

Changes

About intro animation

Layer / File(s) Summary
Animate Things bubbles
src/app/about/_components/animated-intro.tsx
The intro replaces the period after “Things” with three square bubble elements. A repeating, staggered GSAP fade-out animation controls the bubbles.

Build script restrictions

Layer / File(s) Summary
Restrict package build scripts
pnpm-workspace.yaml
The pnpm workspace disallows build scripts for sharp and unrs-resolver.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding animated bubbles to the introductory component.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch things-bubbles

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

src/app/about/_components/animated-intro.tsx

Oops! Something went wrong! :(

ESLint: 9.39.4

TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'configs' -> object with constructor 'Object'
| property 'flat' -> object with constructor 'Object'
| ...
| property 'plugins' -> object with constructor 'Object'
--- property 'react' closes the circle
Referenced from: /.eslintrc.cjs
at JSON.stringify ()
at /node_modules/.pnpm/@eslint+eslintrc@3.3.5_supports-color@7.2.0/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2255:45
at Array.map ()
at ConfigValidator.formatErrors (/node_modules/.pnpm/@eslint+eslintrc@3.3.5_supports-color@7.2.0/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2246:23)
at ConfigValidator.validateConfigSchema (/node_modules/.pnpm/@eslint+eslintrc@3.3.5_supports-color@7.2.0/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2277:84)
at ConfigArrayFactory._normalizeConfigData (/n

... [truncated 613 characters] ...

261:25)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/node_modules/.pnpm/@eslint+eslintrc@3.3.5_supports-color@7.2.0/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3199:25)
(node:2) ESLintRCWarning: You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.
(Use node --trace-warnings ... to show where the warning was created)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/app/about/_components/animated-intro.tsx`:
- Around line 25-37: Update the useGSAP bubble animation so it checks the
existing prefers-reduced-motion setting before creating the repeating gsap
tween. When reduced motion is enabled, skip the tween and leave the
.things-bubbles elements visible; preserve the current animation for users
without that preference.
- Around line 78-81: Replace the three decorative div elements following
“Things” in the heading with span elements, preserving their existing className
values and visual behavior while ensuring valid phrasing-content markup.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 668e14a3-71de-4d56-a970-767e95d68a79

📥 Commits

Reviewing files that changed from the base of the PR and between 4912ea3 and 8bbc61b.

📒 Files selected for processing (2)
  • pnpm-workspace.yaml
  • src/app/about/_components/animated-intro.tsx

Comment on lines +25 to +37
useGSAP(() => {
gsap.to(".things-bubbles", {
repeat: -1,
duration: 1.9,
autoAlpha: 0,
stagger: 0.7,
repeatDelay: 0.3,
// ease: "power4.out",
// ease: "back.out(1)",
ease: "slow(0.7,0.7,true)",
// yoyo: true
});
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Honor prefers-reduced-motion in the bubble animation.

The new repeat: -1 tween runs for every user. It does not check the (prefers-reduced-motion: reduce) preference used by the existing intro animation. If the preference is enabled, skip this tween and keep the bubbles visible.

Proposed fix
   useGSAP(() => {
+    const prefersReducedMotion = window.matchMedia(
+      "(prefers-reduced-motion: reduce)",
+    ).matches;
+    if (prefersReducedMotion) return;
+
     gsap.to(".things-bubbles", {
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
useGSAP(() => {
gsap.to(".things-bubbles", {
repeat: -1,
duration: 1.9,
autoAlpha: 0,
stagger: 0.7,
repeatDelay: 0.3,
// ease: "power4.out",
// ease: "back.out(1)",
ease: "slow(0.7,0.7,true)",
// yoyo: true
});
});
useGSAP(() => {
const prefersReducedMotion = window.matchMedia(
"(prefers-reduced-motion: reduce)",
).matches;
if (prefersReducedMotion) return;
gsap.to(".things-bubbles", {
repeat: -1,
duration: 1.9,
autoAlpha: 0,
stagger: 0.7,
repeatDelay: 0.3,
// ease: "power4.out",
// ease: "back.out(1)",
ease: "slow(0.7,0.7,true)",
// yoyo: true
});
});
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/app/about/_components/animated-intro.tsx` around lines 25 - 37, Update
the useGSAP bubble animation so it checks the existing prefers-reduced-motion
setting before creating the repeating gsap tween. When reduced motion is
enabled, skip the tween and leave the .things-bubbles elements visible; preserve
the current animation for users without that preference.

Comment on lines +78 to +81
Things
<div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>
<div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>
<div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

file='src/app/about/_components/animated-intro.tsx'
if rg -n -U --pcre2 '<h[1-6]\b[^>]*>(?:(?!</h[1-6]\b)[\s\S])*<div\b[^>]*things-bubbles' "$file"; then
  echo "Invalid bubble div nesting remains." >&2
  exit 1
fi

Repository: skywalkerSam/skywalkerSam.dev

Length of output: 545


🏁 Script executed:

#!/bin/bash
set -euo pipefail

file='src/app/about/_components/animated-intro.tsx'

printf 'File exists and size:\n'
wc -l "$file"

printf '\nRelevant markup around h2:\n'
sed -n '70,84p' "$file" | cat -n

printf '\nAll things-bubbles markup:\n'
rg -n 'things-bubbles|<h[1-6]|</h[1-6]' "$file"

Repository: skywalkerSam/skywalkerSam.dev

Length of output: 1480


🌐 Web query:

MDN HTML heading elements h1 h2 h3 h4 h5 h6 valid content phrasing elements div default display block

💡 Result:

In HTML, heading elements (h1 through h6) represent section headings and are defined to contain only phrasing content [1][2]. The div element is classified as flow content but not phrasing content; therefore, placing a div inside any heading element is invalid markup [3][4][5]. Key points regarding these elements: 1. Valid Content: Heading elements (h1–h6) must only contain phrasing content (e.g., span, em, strong, text nodes) [1][6]. Because div is not phrasing content, it is strictly prohibited inside headings [3][5]. 2. Default Display: By default, heading elements are block-level elements [1][2]. They create a block-level box in the layout, starting on a new line and occupying the full available width [1][2]. 3. Recommended Alternative: If you need to apply different styles to parts of a heading, the recommended approach is to use span elements instead of div [3][4]. Since span is phrasing content, it is valid within headings [4]. You can then use CSS to style the span as display: block if you require it to behave like a block-level element for layout purposes, while maintaining semantic validity [4]. While some browsers may render a div inside a heading without immediate visual errors, such structures fail HTML validation and are not compliant with web standards [4][5].

Citations:


Use phrasing elements inside the heading.

The <h2> contains <div> elements. inline-block changes CSS display, but it does not make a <div> valid inside a heading. Replace each bubble with a decorative <span>.

Proposed fix
-          <div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>
-          <div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>
-          <div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>
+          <span aria-hidden="true" className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500" />
+          <span aria-hidden="true" className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500" />
+          <span aria-hidden="true" className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500" />
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Things
<div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>
<div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>
<div className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500"></div>
Things
<span aria-hidden="true" className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500" />
<span aria-hidden="true" className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500" />
<span aria-hidden="true" className="things-bubbles ml-1.5 inline-block h-4 w-4 rounded-sm bg-sky-500" />
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/app/about/_components/animated-intro.tsx` around lines 78 - 81, Replace
the three decorative div elements following “Things” in the heading with span
elements, preserving their existing className values and visual behavior while
ensuring valid phrasing-content markup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant