1. Trang chủ
  2. » Công Nghệ Thông Tin

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

48 304 0
Tài liệu được quét OCR, nội dung có thể không chính xác

Đ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

Thông tin cơ bản

Tiêu đề I Cannot Believe It is not Flash: Guide to CSS Animating
Trường học Unknown University
Chuyên ngành Web Development
Thể loại Guide
Định dạng
Số trang 48
Dung lượng 7,92 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

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.

Trang 1

I CAN'T BELIEVE IT’S

NOT FLASH!

Trang 2

<omg code= on sl1des />

Trang 3

email a Friend print close

‘new jackle' large shoulder bag with hand

stitching, tassels, and bamboo detail

» grey guccissima leather with grey leather trim

» gold hardware

« single adjustable strap with 9" drop and detachable shoulder strap with 18" drop

» gold/bamboo push lock closure

« inside zip, cell phone, and pda pockets

= 18.9"L x 2.4'W x 15.4"h

218491 A261G 1200 $3250

your selection ts available

add to shopping bag

For adaitional assistance or information,

please consult a personal shopper

Trang 5

nutsnbolts freckle: Timer

+ _—

dé — de” À —.- <{Í.~- <4 —Ỉ4.«Ẩ~ ⁄

_ Ni bp Mate ee

Trang 7

Performance hit

Trang 8

Performance hit

JavaScript Reflow Rendering Paint

i Ae Bd

Trang 9

Performance hit

JavaScript Reflow Rendering Paint

8g è 4

Trang 10

Performance hit

JavaScript Reflow Rendering Paint

Trang 11

Performance hit

JavaScript Reflow Rendering Paint

Trang 12

Performance hit

JavaScript Reflow Rendering Paint

Trang 14

`

| scripty2: for a more delicious web

Trang 18

Webstock ~ New Zealand's web conference

> | | + | & http: //www.webstock.org.nz/ iss ¢ | (Qy Google

presentations Design, development, mobile,

usability, content, community, open data,

innovation & inspiration Bek Hodgson Chris Shiflett

Tickets are strictly a

The sponsor interviews: Springload

We recently caught up with Bron Thomson, founder of There's five to convince your

Trang 19

Webstock - New Zealand's web conference

full-on days 13 hands+on workshops 24 ickass international speakers 24 must-see

presentations Design, development, mobile, ability, content, community, open data,

innovation & inspiration

Trang 20

Webstock - New Zealand's web conference

[ 4| > | + %& http: //www.webstock.org.nz/ Lissy ¢ | (Qy Google

Trang 21

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.90 Transitional//EN"

Trang 23

Safari on Snow Leopard,

or on Windows: Nokia's Starlight

browser (alpha)

http://www.starlight-webkit.org/

Trang 24

http://pepsicozeitgeist.com/

Trang 25

Edit View History Bookmarks Develop Window Help % © “= (Ce) (Charged) © Do 18 Feb

Trang 26

Fullscreen HD Video CPU%

HTMLS5: 10%

FLASH: 100+%

(and dropped frames)

http://jilion.com/sublime/video

Trang 32

world.Step(ms,1);

Trang 34

PepsiCo SXSW 2009 Zeitgeist Flashback

+ |@%http://pepsicozeitgeist.com/2009/

PepsiCo SXSW 2009 Zeitgeist Flas

“49 K ?andreamonNque Tonsley 2garyvee @mashanle @mekdot (CN (Co j0) —

”murnahan ?nowoiayingon ?Zapnos accounts added she airpoon anderson apple Z

4/2104 Dreakliast DFOWwSser Druece 46 DU oun oh tt check china chís cms |

colfee cogaoke common communities community company 22ñN@Ð@ 1 Gopy cramer crowds cullure customer day de decemberstsã delOanel desman devo digg

eh) lolow lolowllday ltorvad ltound toc 1đa/' 76H ga me 1 a

Qames gary gma google green guy happen Nappy siead

houston nsien deas do nteresting phone feland irish

=

ongmarcn si ays unch make making man Manageme

media menourne mempnis ee SD ESE) es metrics mms mobie

powdery pr premium privacy quincy quit rain ready

satulday seinied send session shift show shut shuttle

sni snow social soundrelief spec spring sỉ sterling stew

sw SXSWDD sxswoc sxswonina sxswed sxswlsn sxswgps tomorrow tony top trendy tumdilr tv tweet tweetdeck

vdeo view watching web week wine wireframes work

Trang 36

Raphaél uses the SVG W3C Recommendation and VML as a base for

creating graphics This means every graphical object you create is also a DOM object, so you can attach JavaScript event handlers or modify them later

Raphaél’s goal is to provide an adapter that will make drawing vector art compatible cross-browser and easy

Raphaél currently supports Firefox 3.0+, Safari 3.0+, Opera 9.5+ and Internet

Explorer 6.0+ Ask your questions there

Hope it will help

For more examples take a look at charting plugin:

How to use it? Best source of updates, so far

Download and include raphael js into your HTML page, then use it as simple as:

Display a menu

http://raphaeljs.com/

Trang 37

<path fill="none" stroke="#5cbfff"

d="M52.2,40.5L47.23,55.5L38.53,70.5L33.88,85.5L36.63,100.5L50.1 ,»115.5L70.7,130.5L97.85,145.5L123.65,160.5L139.3,175.5L126.2,19 Q@.5L132.95,205.5L157.58,220.5L143.85,235.5L155.25,250.5L151.43, 265.5L149.05,280.5L194.5,295.5L103.6, 310.5L97.85,325.5L94.58, 34 Q@.5L86.7,355.5L78.95,370.5L69.35,385.5M56.4,440.5L42.3,455.5L32 93,470.5L26.38,485.5L28.23,500.5L28.95,515.5L40.45,530.5L57.55

»545.5L80.18,560.5L123.55,575.5L144.95,590.5L137.33,605.5L134.9 8,620.5L149.7,635.5L162.73,650.5L142.83,665.5L164.2,680.5L106.2 5,695.5L97.28, 710.5L88.75,725.5L90.83, 740.5L87.15,755.5L85.15,7 70.5L62.55,785.5M52.78, 840.5L41.5,855.5L33.1,870.5L22.38,885.5L 25.63,900.5L24.05,915.5L33.05,930.5L48.3,945.5L65.35,960.5L115 2,975.5L137.7,990.5L136.43,1005.5L102.28,1020.5L132.28,1035.5L1 37.5,1050.5L132.05,1065.5L155.83,1080.5L107.3,1095.5L95.98,1110 5L94.73,1125.5L94.65,1140.5L86.25,1155.5L83.4,1170.5L70.48,118 5.5M58.6,1240.5L43.38,1255.5L33.35,1270.5L28.43,1285.5L29.05,13 0@.5L38.43,1315.5L51.35,1330.5L82.38,1345.5L105.73,1360.5L159.7 8,1375.5L176.05,1390.5L164.13,1405.5L139.48,1420.5L131.53,1435 5L164.83,1450.5L161.15,1465.5L157.2,1480.5L112.68,1495.5L105.68 ,»1510.5L103.83,1525.5L104.25,1540.5L92.5,1555.5L91.35,1570.5L7@ 48,1585.5M54.05,1640.5L48.6,1655.5L35.02,1670.5L32.8,1685.5L36 98,1700.5L41.75,1715.5L63.78,1730.5L90.6,1745.5L112.28,1760.5L 161.35,1775.5L171.2,1790.5L180.43,1805.5L171.88,1820.5L168.65,1 835.5L153.88,1850.5L148.35,1865.5L140.28,1880.5L110.2,1895.5L10 4.68,1910.5L101.2,1925.5L96.7,1940.5L96.5,1955.5L80.08,1970.5L6 8.4,1985.5M54.8, 2040.5L41.23, 2055.5L35.85, 2070.5L30.15, 2085.5L3

Trang 38

@mumahan Enowplayingon Đzappos coounts added aig airport anderson apple

brain breakfast browser bruce bsg bull bun cake check china chris coms

coffee cogecke COrmrnon communities community company connec SÁU camer

cowds culture custormer§ day de decemberists dellpanel design devo digg diggnation dinner directory duke dutch early earthquake facebook family flidcv fight follow’ followfriday forward ound free friday friends frog fun future game games gary gmail google green quy happen happy Reading helping home houston hsieh ideas idol interesting iphone wWeland ism jenny journchat

ỎẲỒẺỒÔ ^ kanwe kawasali kebab keynote launch laundryal leno 144 l6 lse0ang lìve

longmarahụn losrí love lụnch makc making man 0"$‹S8HWEIĐE60Nn nu l6 60C media melbourne memphis metallica metic mms mobile “monday momma mothers movie rrriwee musc natassha nate nelwods r€WI0W€ITHWOIYS TWWYIetv

night pobama online OS panel party paste patids people perez photo plane

powderly pr premium privacy eile” quit rain ready red richardson roi room saturday seinfeld send session shift show shut shuttle siens silver site sleep

smi snow social soundrelief spec spring st sterling stewart street sun sunday

SWÏ sxswbp sxswec sxswochina sxswed sxswisnm sxswqps talk tcot texas today tomorrow ony top trendy tumbir tv tweet tweetdeck tweeting undo S65 Ux

videc view watching web Simms) wine wireframe vOrk vorld Zappos

brought to you by tet ete) created by slas

http://pepsicozeitgeist.com/

Trang 41

WebGL

<script id="vshader" type="x-shader/x-vertex" >

uniform mat4 u_modelViewMatrix;

uniform mat4 u_modelViewProjMatrix;

uniform mat4 u_normalMatrix;

uniform vec3 lightDir;

attribute vec3 vNormal;

attribute vec4 vTexCoord;

attribute vec4 vPosition;

varying float v_Dot;

varying vec2 v_texCoord;

void main()

af

gl Position = u_modelViewProjMatrix * vPosition;

v_texCoord = vTexCoord.st;

vec4 transNormal = u_normalMatrix * vec4(vNormal,1);

v_ Dot = max(dot(transNormal.xyz, lightDir), 2.9);

i

</script>

Trang 42

var exampleScene = scene(

pos: { x: -30.0, y: 30.0, z: -30.0@ }

Trang 44

AAA The Lessons | Learning WebGL

4 | > | + | http: //learningwebgl.com/blog/?page_id=1217 Ẵ | (Qr€

The Lessons | Learning WebGL [

shows you how to download, install and

configure a web browser that can show WebGL content, and gives links to a set of pages that show what it can do

gives you an overview of how WebGL works, with enough code to simply draw a static triangle and a square on the screen

Duilds on lesson 1, and adds colour to the triangle and the square

builds on lesson 2, making the triangle and the square spin around

builds on lesson 3, bringing us into the third dimension fully by replacing the triangle with a

pyramid and the square with a cube

shows how you can use an image file to “skin” your 3D objects, giving you a quick and easy way to make them look more interesting

WOEDGL drournd Wie Mel, tl FED cUlU

WebGL Lesson 14 - specular highlights and loading a JSON model

SPONSORS

Free 3D Scanner eBook

Want Portable Scanning

Technology? Get Our Free 3D

Scanning eBook Now!

ZCorp.com/scanning_in_3D_eBook

Z Diploma in Animation

Start your career in Digital

Animation, Enrol now for 2010!

animatlon.raffles ac.nz

3D Studio Max Jobs

Daily News & Jobs for New Zealand

film & television professionals

January 2010 (21)

December 2009 (17)

November 2009 (34)

October 2009 (25) CATEGORIES

Trang 45

viewmanager.do_doublebuffering default boolean true

xpinstall.dialog.confirm default string chrome:/ /mozapps/content/xpinstall/xpinstallC

xpinstall.dialog.progress.chrome default string chrome://mozapps/content/extensions/extensi

xpinstall.dialog.progress.skin default string chrome://mozapps/content/extensions/extensi

xpinstall.dialog.progress.type.chrome default string Extension:Manager xpinstall.dialoq.progress.type.skin default string Extension:Manager

http://ftp.mozilla.org/pub/mozilla.org/

firefox/nightly/latest-trunk/

Trang 47

JavaScript & CSS CSS Transforms & Animations

2D bitmapped graphics

Physics engines Vector graphics

HTMLS5 video

WebGL

Trang 48

@thomasfuchs

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

w