Improve masking effect performance on mobile devices

Lab | February 12, 2014 | 1 Comment

If you want to make a masking animation on HTML, usually can make using height transition and overflow: hidden.
It’s fine on your desktop browser, but it’s not smooth on mobile devices.
The performance of animating some elements (such as width, height, left, top and margin..etc) are not that great on mobile devices.
The best things for smooth animation are CSS3 transitions, CSS3 3D transforms, Canvas Drawing and WebGL, because these things are using GPU acceleration.
I’ve tested three ways (Height, ScaleY, Translate) for smooth animations, you can see my demo at below url.
http://lab.cmiscm.com/masking/

1. Height animation

It’s very simple way for the masking animation.
But the performance is bad on mobile devices, the animation is not smooth.

RUNNING ON IPHONE
height
DEMO
CSS
HTML
JS

2. Scale animation

So what about using scaleY for the masking animation.
The performance is good, but the image is stretched little bit while animating.

RUNNING ON IPHONE
scale
DEMO
CSS
HTML
JS

3. Translate animation

Actually this is what I want to say at this article.
It only uses CSS transitions with two masking layers, and it’s super smooth on mobile devices.

RUNNING ON IPHONE

translate

LAYER DEPTH

masking

DEMO
CSS
HTML
JS

DDANGA

Projects | February 6, 2014 | 7 Comments

RUNNING ON IPAD

SLIDE SWIPE PROTOTYPE

SLIDE ONLY ITEMS IN VISIBLE AREA

ICON DESIGN

iCON_noline_blog

WEBSITE DESIGN

a1
a2
a3
a4
a5
a6
a7
a8
a9
a10
a11
a12
a13
a14

CMS

b1
b2
b3
b4
b5
b6

DESCRIPTION

DDANGA is the portfolio website of Interactive/Mobile/UI Designer Sanghee Cho. The website is designed with a concept of a flowing gallery, and the interaction was implemented to reflect this concept.

In keeping with the minimal design, I placed a significant emphasis on the movement to enhance visual detail. Additionally, I incorporated interactive elements such as a wave-shaped background fill and 3D rotation of round icons upon clicking on thumbnails, in order to seamlessly blend with the background colors. The backend of the website was built using PHP and includes a content management system to facilitate ease of updates.

Technologies & Tools

  • JavaScript
  • PHP
  • CSS3
  • HTML5
  • Canvas
  • Animation
  • Interaction

RELATED PROJECTS

  • +Sticker.js
  • +Heroes!

AWARDS

  • +19th Webby Awards, Official Honoree – April 2015
  • The FWA, Site of the Day – March 2014
  • The FWA, Mobile of the Day – March 2014

PRESS

  • +W.E.B Vol. 177 – September 2014
  • +CA Korea – April 2014

ROLE

  • Designer : Sanghee Cho
  • Developer : Jongmin Kim

Sticker.js

Lab, Projects | February 4, 2014 | Comment

SITE

atickerjs

DESCRIPTION

Sticker.js is a Javascript library that allows you to create a Sticker Effect.
No dependencies (jQuery not required) and MIT License.
Inspired by Sanghee Cho’s Heroes Project.

Technologies & Tools

  • JavaScript
  • Interaction

RELATED PROJECTS

  • +DDANGA
  • +Heroes!

ROLE

  • Solo work