formkit / auto-animate

A zero-config, drop-in animation utility that adds smooth transitions to your web app. You can use it with React, Vue, or any other JavaScript application.
https://auto-animate.formkit.com
MIT License
11.96k stars 210 forks source link

update solid examples to fix #121 #168

Closed zhengkyl closed 8 months ago

zhengkyl commented 9 months ago

The solid examples are using createAutoAnimate incorrectly as mentioned in #121

https://github.com/formkit/auto-animate/commit/f23797a3dd8a7c4ecb5d28ef900965e9d5264e58 partially fixed the docs, but the code still has a few errors.

I removed the leftover duplicate parent variables and other various other nits to get the code functional.

Here is a code sandbox with the changed examples in a working solid app. https://codesandbox.io/p/sandbox/zealous-snyder-f94nyf?file=%2Fsrc%2FApp.tsx%3A2%2C36-2%2C57

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auto-animate ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 29, 2023 6:11am
justin-schroeder commented 8 months ago

Thanks!