Skip to content

Latest commit

 

History

History
90 lines (80 loc) · 2.35 KB

opening-and-closing-apps.md

File metadata and controls

90 lines (80 loc) · 2.35 KB
layout title section h2
bffos
Opening and closing apps
transitions
<strong>CSS transitions:</strong> Provide context using UI animations

Opening and closing apps

Opening an app

Example

home_icons home
clock

CSS Animations

{% highlight css linenos=table %} /* Scale icons */ animation: openAppIcons 0.3s forwards ease; @keyframes openAppIcons { 0% { transform: scale(1.0); } 100% { transform: scale(1.8); } }

/* Show app */ animation: openApp 0.3s forwards ease; @keyframes openApp { 0% { transform: scale(0.1); opacity: 0; } 100% { transform: scale(1.0); opacity: 1; } }{% endhighlight %}


Closing an app

Example

home_icons
clock

CSS Animations

{% highlight css linenos=table %} /* Scale icons */ animation: closeAppIcons 0.3s forwards ease; @keyframes closeAppIcons { 0% { transform: scale(1.8); } 100% { transform: scale(1.0); } }

/* Hide app */ animation: closeApp 0.3s forwards ease; @keyframes closeApp { 0% { transform: scale(1.0); opacity: 1; } 100% { transform: scale(0.1); opacity: 0; } }{% endhighlight %}