Skip to content

Conversation

@justin-schroeder
Copy link
Member

This pull request introduces several improvements and new features across the codebase, focusing on enhanced Angular support, improved Playwright visual testing, expanded documentation (including Bun support), and a new bottom-aligned list test page. The Angular integration has been modernized for standalone components, Playwright configuration and artifact handling have been improved for visual regression testing, and Bun is now included in installation and code example documentation. Additionally, a new utility for offscreen detection has been added, and dependencies have been updated.

Angular Integration Improvements

  • Refactored AutoAnimateDirective to support Angular standalone components using the new input and effect APIs, and removed the now-unnecessary NgModule and lifecycle hooks. This modernizes the directive for Angular 17+ and simplifies usage in both modules and standalone components. (src/angular/index.ts)
  • Updated Angular documentation and examples to reflect the new usage pattern, and clarified support for Angular versions <16 and v16. (docs/src/examples/angular/index.ts, docs/src/sections/SectionUsage.vue) [1] [2]

Playwright Visual Testing Enhancements

  • Added a new script for visual regression testing (test:e2e:visual) and Playwright configuration for screenshot comparison, including artifact upload of video recordings and relaxed pixel difference thresholds. (package.json, playwright.config.ts, .github/workflows/main.yml) [1] [2] [3]
  • Updated local permission settings to allow Playwright and related commands in .claude/settings.local.json.

Documentation and Example Updates

  • Added Bun installation instructions and Bun code example support, including a new IconBun.vue component and UI updates to select Bun in the language switcher. (docs/src/components/CodeExample.vue, docs/src/components/IconBun.vue, docs/src/examples/installation/index.ts) [1] [2] [3] [4] [5]
  • Updated Angular and Vue documentation for clarity and improved formatting. (docs/src/sections/SectionUsage.vue) [1] [2]

New Features and Utilities

  • Added a new Vue page (PageBottomJumpTest.vue) and route for testing bottom-aligned list animations, including a resettable list UI. (docs/src/pages/PageBottomJumpTest.vue, docs/src/main.ts) [1] [2]
  • Introduced an isOffscreen utility function to detect if an element is outside the viewport, improving animation behavior for offscreen elements. (src/index.ts)

Dependency and Build Updates

  • Upgraded Angular, Vite SSG, and other dependencies; added pixelmatch and pngjs for image comparison in visual tests; improved CI build step to optionally skip Nuxt build. (package.json, build/bundle.ts) [1] [2] [3]

If you have questions about any of these changes or want to see how to use the new Angular directive or Bun support, let me know!

justin-schroeder and others added 12 commits August 8, 2025 16:36
* fix: jumping when aligned at bottom (#69)

* chore: use const instead of let

* test(e2e): add Playwright visual tests (video + pixel diffs); stabilize animation waits; upload videos in CI

---------

Co-authored-by: Justin Schroeder <justin@formkit.com>
This adds support for using `useAutoAnimate` with a component as the parent.  

When you add `ref="parent"` to a component, the element is found at `parent.value.$el`.  This update checks for component elements or a plain HTML element ref.
* Improve offscreen handling, Vue integration, and cleanup in AutoAnimate

Co-authored-by: justin <justin@formkit.com>

* Add e2e tests for various autoAnimate scenarios and behaviors

Co-authored-by: justin <justin@formkit.com>
* Angular >v17.1 support

* angular example rewrite

* Angular docs change

* Update package.json

* angular pnpm-lock & usage import fix

* ' -> " typo fix

---------

Co-authored-by: Gergely Dremak <gergely.dremak@hu.bosch.com>
Co-authored-by: Justin Schroeder <justin@formkit.com>
@vercel
Copy link

vercel bot commented Aug 30, 2025

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

Project Deployment Preview Comments Updated (UTC)
auto-animate Ready Ready Preview Comment Sep 5, 2025 1:26pm

…t failures

- Restored deltaBottom/deltaRight checks to detect anchored elements
- Fixed immediate position updates after animations (debounce=false)
- Restored proper parent coordinate calculations in deletePosition
- Added named export for autoAnimate to fix exports test
- Fixed flaky framework animation tests by ensuring elements are visible
- Added scrollIntoViewIfNeeded and increased wait times for CI reliability

All bottom-jump-fix tests now pass across all browsers
…ments

- Added 'pnpm build' step to GitHub Actions workflow before running tests
- Fixed exports test by ensuring dist files are built in CI
- Made framework animation tests more robust with polling approach
- Added browser-specific timeouts for WebKit compatibility
- Increased wait times and retry attempts for slow CI environments
@justin-schroeder justin-schroeder merged commit 91f3201 into master Sep 5, 2025
4 checks passed
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.

5 participants