MCPcopy Index your code
hub / github.com/birjj/flippy.js

github.com/birjj/flippy.js @v1.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.2 ↗ · + Follow
26 symbols 80 edges 10 files 14 documented · 54% updated 3y agov1.0.2 · 2017-08-26★ 1091 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

FlippyJS

FlippyJS is a helper library for FLIP animations - it allows you to easily animate any changes you make to the DOM, without having to specify the animation manually. All animations are done using CSS animations.

It is exported as a UMD library, supporting both AMD, CommonJS and basic <script> usage.

Usage

Flippy.js exposes the function flip(elements, modifier, [options]). Pass it the elements you want to animate, a function which should modify the DOM when called, and an optional options object. It returns a Promise which resolves when the animation is finished.

For specifics, see our docs.

Here's a quick example:

let container = document.querySelector(".notification-container");
flip(
  ".notification", // the elements to animate
  ()=>{ // called when we should make the DOM change
    container.insertBefore(
      generateNotification(),
      container.firstChild
    );
  }
).then(()=>{
  console.log("Animation finished");
});

function generateNotification() { /* ... */ }

Advanced usage

Internally, FlippyJS uses a FLIPElement class to represent elements that are being animated. This class is exposed as flip.FLIPElement, should you wish to play around with it.

More details at our docs.

Core symbols most depended-on inside this repo

first
called by 20
src/element.js
last
called by 20
src/element.js
invert
called by 20
src/element.js
play
called by 18
src/element.js
stop
called by 4
src/element.js
debug
called by 4
src/element.js
setOptions
called by 2
src/element.js
_playPart1
called by 2
src/element.js

Shape

Method 14
Function 10
Class 2

Languages

TypeScript100%

Modules by API surface

src/element.js16 symbols
test/element.spec.js4 symbols
src/helpers.js4 symbols
test/test-helpers.js2 symbols

For agents

$ claude mcp add flippy.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact