Skip to content

nx-js/animate-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The animate middleware

The animate middleware allows you to create entering, leaving and moving animations with a few custom attributes.

  • name: animate
  • direct middleware dependencies: attributes
  • all middleware dependencies: observe, attributes
  • type: component or content middleware
  • ignores: text nodes
  • docs

Installation

npm install @nx-js/animate-middleware

Usage

const component = require('@nx-js/core')
const observe = require('@nx-js/observe-middleware')
const attributes = require('@nx-js/attributes-middleware')
const animate = require('@nx-js/animate-middleware')

component()
  .useOnContent(observe)
  .useOnContent(attributes)
  .useOnContent(animate)
  .register('animated-comp')
<animated-comp @if="show">
  <span enter-animation="fadeIn 1s">Hello World!</span>
</animated-comp>

About

An NX animation middleware, based on standard CSS animations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published