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 | 6 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
DESCRIPTION
Interactive / Mobile / UI Designer, Sanghee Cho’s portfolio website.
URL
CREDIT
Designer : Sanghee Cho
Back-end, Front-end 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.
URL
CREDIT
Solo work