An open API service indexing awesome lists of open source software.

https://github.com/bahrus/be-flippant

Enhance an element with FLIP animation support
https://github.com/bahrus/be-flippant

Last synced: 3 months ago
JSON representation

Enhance an element with FLIP animation support

Awesome Lists containing this project

README

        

# be-flippant (💫)

Use Case:

Our web page, or a part of our web page, consists of two "scenes". There's some (button) element that enables switching from one scene to the other.

In both scenes there is a "main character" (DOM element), that the user is meant to be drawn to.

We would like to gracefully switch from the first scene to the next scene, with the user's eye focused on that "main character", which should smoothly morph between the two scenes.

That's what be-flippant does. Behind the scenes it uses some boring math to figure it all out, and some [mature api's](https://caniuse.com/web-animation) to make it happen, and some acronym or other to give it some buzz.

[![Playwright Tests](https://github.com/bahrus/be-flippant/actions/workflows/CI.yml/badge.svg?branch=baseline)](https://github.com/bahrus/be-flippant/actions/workflows/CI.yml)

Size of package, including custom element behavior framework (be-decorated):

[![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/be-flippant?style=for-the-badge)](https://bundlephobia.com/result?p=be-flippant)

Size of new code in this package:

```html







Switch Episodes

```