Releases: spirit/spirit
Releases · spirit/spirit
v1.1.5
v1.1.4
XPath implementation
Resolves elements using xpath relative to document or child element.
Add path
and/or id
to spirit.Timeline
.
timeline
- label # custom label
- id # [data-spirit-id] attribute (optional)
- path # xpath resolving element (only used if id is not set)
- transitions # transitions list
- transformObject # actual resolved element
- Resolve path for group element in
create()
andload()
- Add support for xpath svg using
*[local-name()='*']
- Support type
object
intimeline.fromObject()
Example:
import { create } from 'spiritjs'
create({
name: "my-group",
fps: 30,
timelines: [{
label: "ghost",
path: "div[1]/section[2]/span[4]/*[local-name()='svg'][1]",
transitions: []
}]
})
v1.1.3
Rewrite of Spirit lib
Completely rewrite of Spirit lib:
- Auto inject GSAP
- Better API
- Load/create to registry
- Works in the browser and node (umd)
- Test everything
- Bind animations to (multiple) element(s)
- Works with spirit extension and first beta of Spirit app
Initial release
This release is based on the old version of Spirit.
A new release is on it's way, for the time being use this one.
- This release needs jQuery and GSAP as dependencies.
- Spirit is only accessible via global window object:
window.spirit
What to expect from future releases:
- Remove jQuery dependency
- Rewrite lib in ES6
- Support AMD, CommonJS
- Custom selectors
- Use
spirit.setup()
to provide gsap tween / timeline - Add tests (tape / jsdom)