webkit transitions. the good, the bad, & the awesome

19
-Webkit- Transition The Good, The Bad & The Awesome

Upload: davatron5000

Post on 11-Jul-2015

6.645 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Webkit Transitions. The Good, The Bad, & The Awesome

-Webkit-TransitionThe Good, The Bad & The Awesome

Page 2: Webkit Transitions. The Good, The Bad, & The Awesome

Table of Contents

• Self-introduction: I’m Dave Rupert.

• What’s -Webkit-Whatsitsface?

• Can I just see a demo?

• How do I use it awesomely?

• Questions/Comments/Concerns/Beer?

Page 3: Webkit Transitions. The Good, The Bad, & The Awesome

I work at Paravel.

...And yes, this is on our actual website.

Page 4: Webkit Transitions. The Good, The Bad, & The Awesome

I host a podcast.

Call 409-BEEF-CAR Today!...And yes, this is my actual Google Voice number.

The ATX Web Showis all about Austinites doing innovative stu! on the web.

If you would like to be on the show...

Page 5: Webkit Transitions. The Good, The Bad, & The Awesome

Let’s Get StartedBut "rst...

Page 6: Webkit Transitions. The Good, The Bad, & The Awesome

NO. THIS WILL NOT WORK IN IE6.

We can "ght about Browsers, Capabilities & Graceful Degradation some other day. Preferably, NOT on the mailing list :)

Page 7: Webkit Transitions. The Good, The Bad, & The Awesome

But it will work on...

~90 Million Mobile Devices + ~10% of all browsers.

Page 8: Webkit Transitions. The Good, The Bad, & The Awesome

-webkit-transitiona { color: blue; -webkit-transition: color 2s linear;}

a:hover {color: red;

}

CSS Property

Time

Easing

Page 9: Webkit Transitions. The Good, The Bad, & The Awesome

The Long Waya {

color:blue;-webkit-transition-property: color;-webkit-transition-duration: 2s;-webkit-transition-timing-function: linear;

}

a:hover {color: red;

}

CSS Property

Time

Easing

Page 10: Webkit Transitions. The Good, The Bad, & The Awesome

Multiple Propertiesa {

color:blue;background-color:white;-webkit-transition-property: color, background;-webkit-transition-duration: 2s, 5s;-webkit-transition-timing-function: linear;

}a:hover {

color: red;background-color:pink;

}

CSS Properties

Times

Easing

Page 11: Webkit Transitions. The Good, The Bad, & The Awesome

All Together Now!a { color: blue; -webkit-transition: all 2s linear;}

a:hover {color: red;

}

All Properties

Time

Easing

Page 12: Webkit Transitions. The Good, The Bad, & The Awesome

DEMO-TIME-

http://daverupert.com/demos

Page 13: Webkit Transitions. The Good, The Bad, & The Awesome

...aaandwe’re back.

Page 14: Webkit Transitions. The Good, The Bad, & The Awesome

So, What’sThe Big Deal?

Page 15: Webkit Transitions. The Good, The Bad, & The Awesome

This has all been done before

• Java Applets

• Flash

• Javascript

• Microsoft DirectX Filters

• and now the Browser via CSS

Page 16: Webkit Transitions. The Good, The Bad, & The Awesome

Best Practices?

• Adding Animations & Transitions DOES NOT replace good UX.

• In fact, in most cases, Animations & Transitions are in opposition to Usability.

• Consider me waiving in a large room...

Page 17: Webkit Transitions. The Good, The Bad, & The Awesome

Don’t Waste Precious Time

• Make it Snappy. Don’t Waste Users’ Time.

• In our non-o#cial testing we found 0.2s~0.3s to be a pretty good feel.

• Make it faster for repetitive tasks.

• Consider waiving in a large room... (again)

Page 18: Webkit Transitions. The Good, The Bad, & The Awesome
Page 19: Webkit Transitions. The Good, The Bad, & The Awesome

Questions?

Follow Me @davatron5000Chunk5 and Goudy Bookletter 1911 from The League of Movable Type