0.1.0 • Published 6 months ago
omi-auto-animate v0.1.0
omi-auto-animate
Omi version of formkit/auto-animate
Install
npm i omi-auto-animate
Usage
import { render, signal, tag, Component, h } from 'omi'
import 'omi-auto-animate'
const show = signal(false)
@tag('my-app')
export class MyApp extends Component {
render() {
return (
<>
<buttton onClick={() => show.value = !show.value}>Toggle show</buttton>
<div o-auto-animate>
{show.value && <h2>Hello o-auto-animate!</h2>}
</div>
</>
)
}
}
render(<my-app />, document.body)
0.1.0
6 months ago