Slide 1

Slide 1 text

When jQuery & CSS3 Collide by Louis Lazaris

Slide 2

Slide 2 text

Who is This Guy?

Slide 3

Slide 3 text

www.impressivewebs.com

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

I’ve Helped With...

Slide 6

Slide 6 text

I Write...

Slide 7

Slide 7 text

I Build...

Slide 8

Slide 8 text

How I Feel

Slide 9

Slide 9 text

The Front-end

Slide 10

Slide 10 text

They Work Together

Slide 11

Slide 11 text

Nobody wants this...

Slide 12

Slide 12 text

Or This...

Slide 13

Slide 13 text

Certainly Not This...

Slide 14

Slide 14 text

But Together...

Slide 15

Slide 15 text

Two Technologies

Slide 16

Slide 16 text

Take-Away Concepts > Think Modular

Slide 17

Slide 17 text

Take-Away Concepts > Think Modular > Learn the Subtleties

Slide 18

Slide 18 text

Animation in jQuery > Uses .animate() > Or .fadeIn(), .slideUp(), etc

Slide 19

Slide 19 text

Animation in jQuery

Slide 20

Slide 20 text

Animation in jQuery

Slide 21

Slide 21 text

Often Unnecessary?

Slide 22

Slide 22 text

Often Unnecessary?

Slide 23

Slide 23 text

The Alternative

Slide 24

Slide 24 text

The CSS

Slide 25

Slide 25 text

One Benefit of .animate()

Slide 26

Slide 26 text

Use ‘transitionend’

Slide 27

Slide 27 text

With Modernizr.prefixed()

Slide 28

Slide 28 text

‘transitionend’ on MDN

Slide 29

Slide 29 text

Use ‘animationend’

Slide 30

Slide 30 text

With Modernizr.prefixed()

Slide 31

Slide 31 text

‘animationend’ on MDN

Slide 32

Slide 32 text

Web Animations 1.0

Slide 33

Slide 33 text

Web Animations 1.0

Slide 34

Slide 34 text

Defining App States

Slide 35

Slide 35 text

Fresh Counting Done htmlElement.className = 'counting'; htmlElement.className = 'done'; Defining App States

Slide 36

Slide 36 text

Defining App States

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

Using Animate.css

Slide 40

Slide 40 text

Using Animate.css

Slide 41

Slide 41 text

Using Animate.css

Slide 42

Slide 42 text

Options... > Use Existing Tools/Libraries > Build Your Own Reusable Modules

Slide 43

Slide 43 text

Benefits? > Modular > Easier to Maintain

Slide 44

Slide 44 text

Using CSS3 Transitions and Animations More Often...?

Slide 45

Slide 45 text

How Are CSS3 Transitions Triggered?

Slide 46

Slide 46 text

A Simple Transition

Slide 47

Slide 47 text

What Triggers It?

Slide 48

Slide 48 text

What Triggers It?

Slide 49

Slide 49 text

This (kind of) means... Event  State Change State Change  Transition

Slide 50

Slide 50 text

How Does State Change? > :hover > :active > :focus

Slide 51

Slide 51 text

How Does State Change? > :checked > :disabled > @media

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

Different Transitions on/off

Slide 54

Slide 54 text

Different Transitions on/off

Slide 55

Slide 55 text

Different Transitions on/off

Slide 56

Slide 56 text

Different Transitions on/off

Slide 57

Slide 57 text

Different Transitions on/off

Slide 58

Slide 58 text

More Transition Subtleties...

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

1 Floated Boxes

Slide 64

Slide 64 text

Increase Width & Height?

Slide 65

Slide 65 text

1 Causes Reflow

Slide 66

Slide 66 text

Scale Transform?

Slide 67

Slide 67 text

1 1 Does Not Cause Reflow

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

Things That Are Out of the Flow... > Text shadows > Box shadows > display: none

Slide 70

Slide 70 text

> position: absolute > position: fixed Things That Are Out of the Flow...

Slide 71

Slide 71 text

> position: absolute > position: fixed > “position: relative” offsets Things That Are Out of the Flow...

Slide 72

Slide 72 text

1 Floated Boxes

Slide 73

Slide 73 text

“position: relative” offsets 1

Slide 74

Slide 74 text

> Outlines > Transform offsets (scale, skew, rotate, translate) Things That Are Out of the Flow...

Slide 75

Slide 75 text

> Know your tools > Use them effectively What Does it Mean?

Slide 76

Slide 76 text

Performance is King

Slide 77

Slide 77 text

Jank Busters (video/slides)

Slide 78

Slide 78 text

Ariya Hidayat (video/slides)

Slide 79

Slide 79 text

Link Dump http://tinyurl.com/jquery-toronto

Slide 80

Slide 80 text

Thank You! @ImpressiveWebs