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

Madmen Animation Effect Using CSS3: Short Guide

130 203 0
Tài liệu đã được kiểm tra trùng lặp

Đ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

Định dạng
Số trang 130
Dung lượng 22,22 MB

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

Nội dung

Why has Edge gone with div-based animation? I was deeply saddened to see that not only were divs used in the example files that you released, but that divs are the default option for the stage and any other element that is added to it. The Madmaninmation demo of animatable is a great example. When you check the source code it falls back to a list with the script of the animation. This allows everybody to know what is going on and helps your product to be understood by search engines. Small details make a Big difference

Trang 1

SMOKE GETS IN YOUR EYES

Trang 5

http://www.flickr.com/photos/gifake/sets/72157622341953667/detail/

Trang 6

https://developer.mozilla.org/en-US/demos/tag/tech:css3

Trang 7

https://developer.mozilla.org/en-US/demos/detail/the-letter-heads

Trang 9

https://developer.mozilla.org/en-US/demos/detail/the-planetarium

Trang 11

https://developer.mozilla.org/en-US/demos/detail/css-nyan-cat

Trang 13

https://developer.mozilla.org/en-US/demos/detail/rofox-css3-animation-by-anthony-calzadilla

Trang 15

ANIMATABLE.COM /DEMOS/ MADMANIMATION

Madmanimation is for educational purposes only and is not affiliated with the Mad Men TV show

All American Movie Classics Company LLC copyrights, trademarks and tradenames are respected.

Trang 16

MAD

Trang 18

.lamp {

transition-property : opacity; }

Trang 19

COLOURS

FONTS POSITION

BORDERS DIMENSIONS

OPACITY TRANSFORMS

Trang 20

TRANSITION PROPERTY

.lamp {

transition-property : opacity, color; }

Trang 21

.lamp {

transition-property : all; }

Trang 22

.lamp {

t ransition-duration : 15s; }

Trang 23

.lamp {

transition-delay : 1s; }

Trang 24

.lamp {

transition-timing-function : linear; }

Trang 25

.lamp {

transition : opacity 25s 1s linear; }

Trang 26

.lamp {

-ms- transition : opacity 25s 1s linear;

-o- transition : opacity 25s 1s linear;

transition : opacity 25s 1s linear;

}

Trang 30

MAD

Trang 35

-webkit- @keyframes lamp { }

-moz- @keyframes lamp { }

Trang 36

-webkit- @keyframes lamp { }

-moz- @keyframes lamp { }

-ms- @keyframes lamp { }

@keyframes lamp { }

Trang 37

COLOR FONT-SIZE FONT-WEIGHT HEIGHT

LEFT LETTER-SPACING LINE-HEIGHT

MARGIN MAX-HEIGHT MAX-WIDTH

MIN-HEIGHT MIN-WIDTH OPACITY

OUTLINE PADDING TEXT-INDENT TEXT-SHADOW TOP

VERTICAL-ALIGN VISIBILITY

WIDTH Z-INDEX

Trang 38

.lamp {

animation-name : lamp; }

Trang 39

.lamp {

animation-duration : 6s; }

Trang 40

.lamp {

animation-delay : 1500ms; }

Trang 41

.lamp {

animation-iteration-count : 1; }

Hint: [number] [infinite]

Trang 42

.lamp {

animation-timing-function : linear; }

Hint: [ease] [ease-in] [ease-out] [ease-in-out] [linear]

Trang 43

.lamp {

animation-direction : normal; }

Hint: [normal] [alternate]

Trang 44

.lamp {

animation : 6s 1500ms 1 linear normal; }

Trang 46

MAD

Trang 47

SCENE ONE

Trang 49

#curtain {

background-color : rgb(0,0,0); opacity : 0;

Trang 50

#curtain {

background-color : rgb(0,0,0); opacity : 0;

animation-name : fade;

animation-duration : 2s;

animation-iteration-count : 1; }

Trang 51

MAD

Trang 52

TRANSLATE SCALE

ROTATE

SKEW

Trang 53

TRANSFORM SCALE X

.don {

transform : scaleX(1.5); }

Trang 54

TRANSFORM SCALE Y

.don {

transform : scaleY(1.5); }

Trang 55

TRANSFORM SCALE

.don {

transform : scale(1.5); }

Trang 56

TRANSFORM SCALE

.don {

transform : scale(.5); }

Trang 58

@keyframes don {

0% { transform : scale(1.05); } 100% { transform : scale(.8); }

}

Trang 60

@keyframes background {

0% { transform : scale(1.05); } 100% { transform : scale(1); } }

Trang 61

SCENE THREE

Trang 63

TRANSFORM TRANSLATE X

.don {

transform : translateX(100px); }

Trang 64

TRANSFORM TRANSLATE Y

.don {

transform : translateY(100px); }

Trang 65

TRANSFORM TRANSLATE

.don {

transform : translate(-100px 100px); }

Trang 66

SCENE THREE

Trang 68

transform : translate(0,130px); } }

Trang 69

#shadow {

top : 540px;

left : 435px;

animation-name : shadow; animation-duration 1s; }

Trang 70

transform : translate(0,-130px); } }

Trang 71

#blinds {

top : 30px;!

left : 610px;

animation : blinds 2s 1s 1; }

#slat {

top : 30px;!

left : 612px;

animation : slat 2s 1500ms 1; }

Trang 73

SCENE THREE

ANIMATE TRANSLATE

Trang 74

SCENE NINE

Trang 76

TRANSFORM ROTATE

.don {

transform : rotate(90deg); }

Trang 77

TRANSFORM ROTATE

.don {

transform : rotate(-90deg); }

Trang 78

Donald Francis “Don” Draper is a fictional character and the protagonist of AMC’s television series Mad Men He is portrayed by 2008 Golden Globe winner Jon Hamm Until the

third season finale, Draper was

Creative Director of Manhattan

advertising firm Sterling Cooper He

became a founding partner at a new firm, Sterling Cooper Draper Pryce, after he and his superiors abandoned their old agency in

advance of an unwanted acquisition Draper's

character is partially based on Draper Daniels, the creative head of the Leo Burnett advertising agency

in Chicago in the 1950s who created the Marlboro Man campaign.

Trang 79

Donald Francis “Don” Draper is a fictional character and the protagonist of AMC’s

television series Mad Men He is portrayed

by 2008 Golden Globe winner Jon Hamm Until the third season finale, Draper was

Creative Director of Manhattan advertising firm Sterling Cooper He became a founding partner at a new firm, Sterling Cooper Draper Pryce, after he and his superiors abandoned their old agency in advance of an unwanted acquisition Draper's character is partially

based on Draper Daniels, the creative head

of the Leo Burnett advertising agency in

Chicago in the 1950s who created the

Marlboro Man campaign.

Trang 80

TRANSFORM ORIGIN

Trang 81

TRANSFORM ORIGIN

.don {

transform-origin : 0 0; }

Trang 82

TRANSFORM ORIGIN

.don {

transform-origin : 50% 0; }

Trang 83

TRANSFORM ORIGIN

.don {

transform-origin : 100% 0; }

Trang 84

TRANSFORM ORIGIN

.don {

transform-origin : 0 100%; }

Trang 85

TRANSFORM ORIGIN

.don {

transform-origin : 100% 100%; }

Trang 88

}

Trang 89

}

Trang 90

#background { width : 1400px;

Trang 92

ANIMATE ROTATE

Trang 93

ANIMATABLE.COM /DEMOS/ MADMANIMATION

Madmanimation is for educational purposes only and is not affiliated with the Mad Men TV show

All American Movie Classics Company LLC copyrights, trademarks and tradenames are respected.

Trang 96

<! THIS IS CLASSIC DIVITIS, BUT

HEY, THIS IS ALSO SOME UNCONVENTIONAL SH!T IF YOU'RE GONNA MAKE AN

OMELET YOU GOTTA BREAK SOME EGGS >

Trang 98

Why has Edge gone with div-based animation?

I was deeply saddened to see that not only were divs used in the example files that you released, but that divs are the default option for the stage and any other element that is added to it.

– Rob Hawkes

http://forums.adobe.com/thread/884525

Trang 99

The Madmaninmation demo of animatable is

a great example When you check the source code it falls back to a list with the script of the animation This allows everybody to know what is going on and helps your product to

be understood by search engines.

– Chris Heilmann

http://hacks.mozilla.org/2011/08/living-

on-the-edge-new-adobe-animation-tool-sparks-necessary-conversations/

Trang 100

<ol id="animation">

<li id="scene-01">[…]</li> <li id="scene-02">[…]</li> <li id="scene-03">[…]</li> <li id="scene-04">[…]</li> <li id="scene-05">[…]</li> <li id="scene-06">[…]</li> <li id="scene-07">[…]</li> <li id="scene-08">[…]</li> <li id="scene-09">[…]</li> <li id="scene-10">[…]</li> <li id="scene-11">[…]</li> <li id="scene-12">[…]</li> <li id="scene-13">[…]</li> <li id="scene-14">[…]</li> <li id="scene-15">[…]</li> <li id="scene-16">[…]</li>

</ol>

Trang 101

<ol id="animation">

<li id="scene-01">

<p>Don Draper pauses in the doorway of his Manhattan

office Everything except fan blades are still.

Don&#8217;s desk is littered with bottles.</p>

Trang 103

$(document).ready(function() {

!

if (Modernizr.cssanimations) {

$("#scene-01").append('

<div id="background"><img src="bg.jpg" alt=""></div>

<div id="fan"><img src="blades.png" alt=""></div>

<div id="don"><img src="don.png" alt=""></div>

<div id="curtain"></div>');

}

});

Trang 104

$(document).ready(function() {

!

if (Modernizr.cssanimations) {

$("#scene-01").append('

<div id="background"><img src="bg.jpg" alt=""></div>

<div id="fan"><img src="blades.png" alt=""></div>

<div id="don"><img src="don.png" alt=""></div>

<div id="curtain"></div>');

}

});

$("h1").prepend('<a href="#">Watch</a> ')

Trang 105

<div id="scene-01">

<div id="bg-01"><img src="01-bg.jpg" alt=""><div

id="fan-01"><div id="bg-fan"><img src="01-bg-fan.png"

alt=""></div><div id="fan-blade"><img src="01-fan-blade.png" alt=""></div></div></div><div id="man-01"><img src="01-

man.png" alt=""></div><div id="blk-curtain"></div></div>

<div id="scene-02">

<h1 id="title-02"><span>Jeffrey</span> Zeldman</h1><div

id="r-shadow"><img src="02-r-shadow.png" alt=""></div><div id="l-shadow"><img src="02-l-shadow.png" alt=""></div><div id="r-leg-02"><div id="r-foot-02"><img src="02-r-foot.png" alt=""></div></div><div id="l-leg-02"><div id="l-foot-

tip"><img src="02-l-foot-tip.png" alt=""></div><div

foot-02"><img src="02-l-foot.png" alt=""></div><div

id="l-shin-02"><img src="02-l-leg.png" alt=""></div></div></div>!

<div id="scene-03">

<h1 id="title-03"><span>Sarah</span> Parmenter</h1><div

id="bg-03"><img src="images/03-bg.jpg" alt=""></div><div

id="legs-03"><img src="images/03-legs.png" alt=""></div><div id="multi-slats-03"><img src="images/03-slats-multi.png"

alt=""></div><div id="single-slat-03"><img

src="images/03-slats-single.png" alt=""></div><div id="suitcase-03"><img

src="images/03-suitcase.png" alt=""></div>

</div>

Trang 113

http://daneden.me/animate/

Trang 122

100% { border-color : rgba(255,255,255,0); } }

SMOKE BREAK

Trang 124

100% { border-color : rgba(255,255,255,.2); } }

SMOKE BREAK

Trang 125

.error::-webkit-input-placeholder { color : rgb(255,255,255); }

.error:-moz-placeholder {

color : rgb(255,255,255); }

SMOKE BREAK

Trang 127

<a href="#ref-06">6</a>

<ol class="refs">

<li id="ref-01">The Real-Life Don Draper</li>

<li id="ref-02">Top 49 Most Influential Men</li> <li id="ref-03">The Mountain King</li>

<li id="ref-04">Mad Men The Color Blue</li>

<li id="ref-05">The Jet Set Mad Men AMC.</li>

<li id="ref-06">Public Relations</li>

<li id="ref-07">Hill, Logan</li>

<li id="ref-08">Secret of Draper’s Sex Appeal</li> <li id="ref-09">Sad Don Draper</li>

<li id="ref-10">What Would Don Draper Do?</li>

</ol>

SMOKE BREAK

Trang 130

ANTHONY CALZADILLA @ACALZADILLA

GERI COADY @HELLOGERI

ANDY CLARKE @MALARKEY

Original photography by Geri Coady, Nate Croft, Kat Durrant,

Peter Hart, Mark Jaquith, Chris Jennings, Jeremy Keith, Maykel Loomans, John Morrison - Subism.com, Stefan

Nitzsche, Warren Parsons and Jeffrey Zeldman.

Anthony Calzadilla appears courtesy of

Optimum7 Internet Marketing

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

TỪ KHÓA LIÊN QUAN