Git Product home page Git Product logo

snapfoo's Introduction

SnapFoo Logo

SnapFoo is a lightweight (~4.5k minified) animation library that compliments Snap.svg. The focus of SnapFoo is to simplify bringing elaborate scenes of SVG animations and interactions to life.

Documentation

SnapFoo Documentation

Release Notes (V2.1)

  • Published SnapFoo to NPM
npm install snapfoo --save
  • The ./src directory now contains an updated copy of SnapFoo including minor ES6 additions
  • The ./dist directory contains the production files that have ben transpiled to es-2015 presets via Babel

Release Notes (V2)

  • Greater support and flexibility for callbacks including scoping and when they execute
  • Performance and various updates including ~newer jQuery features for SVG class manipulation
  • Better support and features for path animations
  • Updated support for multiple animations and classes within a single SVG container
  • General overhaul and organization of features and naming
  • Removed intervals for looping
  • Removed stop(), set(), and clear() methods

Get Started

NPM

npm install snapfoo --save

Manual Download SnapFoo and include the ./dist/ build in your project after jQuery and Snap.svg. Once included, call the library for use:

const snapfoo = snapFoo("#theSVGContainer");

SnapFoo Calls

  • snapfoo.animate(): The primary animation call that receives an element or group of elements to animate based on theFramesObj object. Any element to be animated that does not already have an ID is appended the class "sf#" for a unique identifier.
  • snapfoo.animatePath(): Animate an element or group of elements along a path. Any element to be animated that does not already have an ID is appended the class "sf#" for a unique identifier.

Contact

@Yuschick on Twitter

Sponsors

Spice Program - Futurice

snapfoo's People

Contributors

yuschick avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.