gnat / surreal

🗿 Mini jQuery alternative. Dependency-free animations. Locality of Behavior. Use one element or arrays transparently. Pairs with htmx. Vanilla querySelector() but better!
https://gnat.github.io/surreal/example.html
MIT License
1.2k stars 24 forks source link

fadeIn / fade_in effect as convenience built-in. #2

Closed gnat closed 2 years ago

gnat commented 2 years ago

The opposite compliment of fadeOut / fade_out: https://github.com/gnat/surreal/blob/e8b3ae5683dfdc3487a6d99cefa0fe25a8674117/surreal.js#L249

fadeIn should animate into existince an element of opacity: 0 and accept a callback and time similar to the existing fadeOut.