8000 Releases · spirit/spirit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: spirit/spirit

v1.1.5

21 Mar 08:16
Compare
Choose a tag to compare

Add id to timeline.toObject()

v1.1.4

20 Mar 22:26
Compare
Choose a tag to compare

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() and load()
  • Add support for xpath svg using *[local-name()='*']
  • Support type object in timeline.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

16 Mar 14:56
Compare
Choose a tag to compare
  • Type comparison fix.
  • Bump version include newly created builds (/dist)
  • Export as default:
import { create } from 'spiritjs'
create( json )

or

import spirit from 'spiritjs'
spirit.create( json )

Rewrite of Spirit lib

19 Oct 18:33
Compare
Choose a tag to compare

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

13 Jul 11:38
Compare
Choose a tag to compare
Initial release Pre-release
Pre-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)
0