Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dom-flip

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-flip

FLIP move for web components

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

<dom-flip>

Published on webcomponents.org

🔀 Smooth list animation for web components.

This element is an implementation of the FLIP-technique for arbitrary elements. Simply place it around the elements you indend to move and they will smoothly slide over the screen.

Installation

This element lives on npm. Install with yarn add dom-flip or npm install --save dom-flip.

Usage

You can use this element together with any templatizing element that modifies the DOM. The animated elements must be direct children of the dom-flip element.

To be able to correlate changes in the model to changes to the DOM, this element requires that you give every element a unique ID. This can be either an attribute, or a property.

<dom-flip>
    <template is="dom-repeat" items="[[items]]">
        <my-item data-flip-id$="[[item.id]]">[[item.name]]</my-item>
    </template>
</dom-flip>

Usage with Polymer

It is also special-cased to work with Polymer's dom-repeat. Although we wish it did, this element will not work with <iron-list> due to the virtualization. Maybe this can be fixed in the future.

License

MIT

FAQs

Package last updated on 27 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc