ingram-projects / animxyz

The first truly composable CSS animation library. Built for Vue, React, SCSS, and CSS, AnimXYZ will bring your website to life.
https://animxyz.com
MIT License
2.42k stars 56 forks source link

Preact support request #80

Closed EthanStandel closed 2 years ago

EthanStandel commented 2 years ago

When I use Preact with Animxyz using preact/compat the animations just constantly go in and out when an animated element is supposed to exist

EthanStandel commented 2 years ago

Feel free to close as wontfix if there's no way this is on your roadmap

mattaningram commented 2 years ago

Can you setup an example Codesandbox or something similar to demonstrate the issue? We can take a look.

EthanStandel commented 2 years ago

@mattaningram I have a Next app deployed with Vercel, so I can just show you the historic deployment and the code at that particular commit

Code Deployment (click a photo thumbnail to see the issue) Working deployment with the only difference being regular React

milesingrams commented 2 years ago

We use React Transition Group behind the scenes and I don't think that works with Preact. Last issue related to it is: https://github.com/preactjs/preact-compat/issues/14

Gonna close as wontfix but feel free to explore the answers to that thread and see if any sort of import proxy might work.

EthanStandel commented 2 years ago

@milesingrams that's alright, thanks for looking into it!