Ionic 5: Develop cross-platform apps with new, custom animations

Share
  • February 17, 2020

The Ionic framework helps develop fast performing cross-platform mobile apps, progressive web apps, and web tech, all with one shared codebase. One of the framework’s main elements is its ready-made, reusable UI components, which can make developing an app easier even with limited programming experience.

Version 5 (Magnesium) makes the developing experience even more intuitive. This major release includes a large number of updates, design changes, as well as a new API that allows devs to create their own custom animations.

Design overhaul

With the new design changes in iOS 13, iOS native Ionic 5 also receives a makeover to match.

Some of these visual updates include ion-segment, collapsible headers and buttons, swipeToClose , menu overlay with updated animation, pull-to-refresh functionality, and a larger, bolder list header.

Of course, all of these changes are available in both light and dark mode.

SEE ALSO: Python web framework JustPy – interactive websites without JavaScript

Custom animations

Developers can move beyond the limitations of JavaScript-driven animations and create their own reusable Ionic Animations.

According to benchmark tests, on both mobile devices and desktop machines Ionic Animations maintain higher frames per second (a smooth 60 FPS) with low CPU usage. It performed better than other animation libraries such as Anime.js, GSAP, and Velocity.

From the developer blog:

Ionic Animations uses the Web Animations API to build and run all of your animations. By doing this, we can offload all of the work required to run your animations to the browser. As a result, the browser is able to schedule and make any optimizations to your animations that it needs, allowing your animations to run as smoothly as possible.

Open source icons

ionic

Open source Ionicons sample. Source.

To help kickstart your development, v5 includes some new open source icons, free to use in your web, iOS, Android, and desktop apps under the MIT license. Each icon includes three variants: outline, fill, and sharp.

All icons are available as DVG and web fonts. View the changelog for all the icon updates and a few breaking changes.

Source : JAXenter