All Projects → birjolaxew → Flippy.js

birjolaxew / Flippy.js

Licence: mit
FLIP animation helper; animate DOM changes with ease

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Flippy.js

Elementx
⚡️ Functionally create DOM elements and compose them to a tree quickly
Stars: ✭ 62 (-43.64%)
Mutual labels:  dom
React Faux Dom
DOM like structure that renders to React (unmaintained, archived)
Stars: ✭ 1,226 (+1014.55%)
Mutual labels:  dom
Domato
DOM fuzzer
Stars: ✭ 1,303 (+1084.55%)
Mutual labels:  dom
Web Template
web-template.js 是一款基于 ES6 模板字符串解析的模板引擎。
Stars: ✭ 67 (-39.09%)
Mutual labels:  dom
Jsoup
jsoup: the Java HTML parser, built for HTML editing, cleaning, scraping, and XSS safety.
Stars: ✭ 9,184 (+8249.09%)
Mutual labels:  dom
Canvaskeyframes
最简单的序列帧动画canvas插件
Stars: ✭ 83 (-24.55%)
Mutual labels:  dom
Sentineljs
Detect new DOM nodes using CSS selectors (650 bytes)
Stars: ✭ 1,100 (+900%)
Mutual labels:  dom
Littlefoot
Footnotes without the footprint.
Stars: ✭ 95 (-13.64%)
Mutual labels:  dom
Sauron
Sauron is an html web framework for building web-apps. It is heavily inspired by elm.
Stars: ✭ 1,217 (+1006.36%)
Mutual labels:  dom
Styled Elements
Styled components for the DOM.
Stars: ✭ 87 (-20.91%)
Mutual labels:  dom
Dom To Svg
Library to convert a given HTML DOM node into an accessible SVG "screenshot".
Stars: ✭ 67 (-39.09%)
Mutual labels:  dom
Query Selector
Query the document tree by selector, filtering by element type.
Stars: ✭ 70 (-36.36%)
Mutual labels:  dom
Domquery
PHP library for easy 'jQuery like' DOM traversing and manipulation.
Stars: ✭ 84 (-23.64%)
Mutual labels:  dom
Autosize Input
🎈 Effortless, dynamic-width text boxes in vanilla JavaScript
Stars: ✭ 64 (-41.82%)
Mutual labels:  dom
Nipplejs
🎮 A virtual joystick for touch capable interfaces.
Stars: ✭ 1,313 (+1093.64%)
Mutual labels:  dom
Dom
DOM Standard
Stars: ✭ 1,114 (+912.73%)
Mutual labels:  dom
Hpq
Utility to parse and query HTML into an object shape
Stars: ✭ 82 (-25.45%)
Mutual labels:  dom
Uav Mapper
UAV-Mapper is a lightweight UAV Image Processing System, Visual SFM reconstruction or Aerial Triangulation, Fast Ortho-Mosaic, Plannar Mosaic, Fast Digital Surface Map (DSM) and 3d reconstruction for UAVs.
Stars: ✭ 106 (-3.64%)
Mutual labels:  dom
Spy
A simple module that displays DOM attributes on mouseover inside a tooltip.
Stars: ✭ 93 (-15.45%)
Mutual labels:  dom
Hyntax
Straightforward HTML parser for JavaScript
Stars: ✭ 84 (-23.64%)
Mutual labels:  dom

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:

const 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].