All Projects → matteobortolazzo → Fast Morph

matteobortolazzo / Fast Morph

Licence: mit
A Morphing UI web component built with StencilJS

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Fast Morph

Ionicons
Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎
Stars: ✭ 15,802 (+17457.78%)
Mutual labels:  ionic, webcomponents
Stencil
A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
Stars: ✭ 9,880 (+10877.78%)
Mutual labels:  ionic, webcomponents
app-starter
Angular mono-repo (Ionic/Capacitor/StencilJS/Web Component) app starter for supporting cross platform apps.
Stars: ✭ 75 (-16.67%)
Mutual labels:  ionic, webcomponents
Ionic Framework
A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
Stars: ✭ 45,802 (+50791.11%)
Mutual labels:  ionic, webcomponents
Deckdeckgo
The web open source editor for presentations
Stars: ✭ 1,117 (+1141.11%)
Mutual labels:  ionic, webcomponents
Article
Components for interactive scientific writing, reactive documents and explorable explanations.
Stars: ✭ 77 (-14.44%)
Mutual labels:  webcomponents
Funcy.js
funcy.js - a functional web components wrapper
Stars: ✭ 87 (-3.33%)
Mutual labels:  webcomponents
Wired Elements
Collection of custom elements that appear hand drawn. Great for wireframes or a fun look.
Stars: ✭ 8,848 (+9731.11%)
Mutual labels:  webcomponents
Ion Tree List
Ionic directive for displaying nested list items.
Stars: ✭ 73 (-18.89%)
Mutual labels:  ionic
Covapp
The app lets everyone assess their symptoms using a questionnaire. The app also informs users about next steps, for example, precautionary measures or contacting healthcare providers and health authorities.
Stars: ✭ 90 (+0%)
Mutual labels:  webcomponents
Onesignal Ionic Example
Stars: ✭ 89 (-1.11%)
Mutual labels:  ionic
Ionic3 Seed Jwt
Ionic 3 seed project with JWT support. It works together with the backend from here https://github.com/vmanchev/laravel-jwt
Stars: ✭ 86 (-4.44%)
Mutual labels:  ionic
Ionic Firebase Mega Starter
Mega Starter template for Ionic & Firebase Apps
Stars: ✭ 78 (-13.33%)
Mutual labels:  ionic
Ionic Pwa
🚀 Build a Progressive Web App with Ionic and Angular. Push Notifications. Deployed to Firebase Hosting. The Complete guide to build your PWA. Service Workers. Lighthouse. Web Manifest
Stars: ✭ 87 (-3.33%)
Mutual labels:  ionic
Ionic Firebase Starter App
Ionic 4 firebase CRUD tutorial to learn how to create a firebase application to perform Authentication and all CRUD operations in an ionic 4 application. You can use this FREE Ionic Firebase Starter App as a base to create your Ionic App with Firebase backend :)
Stars: ✭ 77 (-14.44%)
Mutual labels:  ionic
Building A Complete Mobile App With Ionic Framework
JSConfUY 2015 Ionic workshop app. Ionic example conference app.
Stars: ✭ 89 (-1.11%)
Mutual labels:  ionic
Tutorial Photo Gallery Angular
Photo Gallery Tutorial: Ionic Angular and Capacitor
Stars: ✭ 73 (-18.89%)
Mutual labels:  ionic
Docker Ionic
🎢 Docker image for Ionic (with Android & Cordova)
Stars: ✭ 85 (-5.56%)
Mutual labels:  ionic
Intercom Cordova
Cordova/PhoneGap plugin for Intercom
Stars: ✭ 88 (-2.22%)
Mutual labels:  ionic
Facebook Login With Ionic Framework
Ionic example app of how to add Facebook Native authentication into an Ionic Framework v1 app. Add facebook login to your ionic app!
Stars: ✭ 83 (-7.78%)
Mutual labels:  ionic

Fast Morph

A Morphing UI web component built with StencilJS

Inspired by brunnolou's react-morph

Sign-In example

Install

npm i @matteobortolazzo/fast-morph --save

Usage

Pure HTML

<script src="https://unpkg.com/@matteobortolazzo/[email protected]/dist/fast-morph.js"></script> 

Frameworks

Please visit https://stenciljs.com/docs/overview

Example

  1. Create two states (HTML)
  2. Wrap both in one fast-morph component (using slot="state-0" and slot="state-1")
  3. Label the elements you want to morph with itemprop="fm-<something>"
  4. Label the elements you want to use to change state with itemprop="fm-activator"
<fast-morph>
    <div slot="state-0">
      <div itemprop="fm-activator" class="state-0-div">
        <div itemprop="fm-sign-in-back" class="sign-in-back"></div>
        <div itemprop="fm-sign-in">Sign In</div>
      </div>
    </div>
    <div slot="state-1">
      <div class="form-container">
        <div class="form-back" itemprop="fm-sign-in-back"></div>
        <form>
          <div class="label">Email</div>
          <input />
          <div class="label password">Password</div>
          <input />
          <br />
          <div itemprop="fm-sign-in" class="sign-in">Sign In</div>
          <div class="cancel" itemprop="fm-activator">Cancel</div>
        </form>
      </div>
    </div>
  </fast-morph>

Keep in mind

(this section is from brunnolou's react-morph)

  • You need to remove extra whitespace, to match the real element's width, the solution is display: inline-block or a wrapping element to the content.
  • Margins are always tricky because they create extra white space. You can either wrap the content in another element and animate it or be sure to match both the margins in both states.
  • Sometimes it's necessary to create a placeholder element for the transition to avoid child distortion.
  • List items could be miscalculated; a simple solution is: list-style: none;.
  • Sometimes you need extra layers instead of nested children.
  • Avoid animating both the parent and children to avoid unpredicted results.

Card example

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