I Cannot Believe It is not Flash: Guide to CSS Animating

48 303 0
I Cannot Believe It is not Flash: Guide to CSS Animating

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

CSS animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components, a style describing the CSS animation and a set of keyframes that indicate the start and end states of the animations style, as well as possible intermediate waypoints along the way. There are three key advantages to CSS animations over traditional scriptdriven animation techniques: Theyre easy to use for simple animations; you can create them without even having to know JavaScript. The animations run well, even under moderate system load. Simple animations can often perform poorly in JavaScript (unless theyre well made). The rendering engine can use frameskipping and other techniques to keep the performance as smooth as possible. Letting the browser control the animation sequence lets the browser optimize performance and efficiency by, for example, reducing the update frequency of animations running in tabs that arent currently visible.

I Can’t Believe It’s Not Flash! @thomasfuchs Animating CSS properties Timer JavaScript sets CSS Reflow Rendering Paint Animating CSS properties Timer JavaScript sets CSS Reflow Rendering Paint Performance hit Performance hit JavaScript Reflow Rendering Paint Performance hit JavaScript Reflow Rendering Paint Performance hit JavaScript Reflow Rendering Paint http://pepsicozeitgeist.com/ Vector graphics SVG + VML JavaScript creates vector graphics nodes Reflow Rendering Paint http://raphaeljs.com/

Ngày đăng: 11/07/2014, 11:56

Tài liệu cùng người dùng

Tài liệu liên quan