CSS3 For Advanced Design

32
CSS3 FOR ADVANCED DESIGN Paul Trani, Adobe Evangelist

description

 

Transcript of CSS3 For Advanced Design

Page 1: CSS3 For Advanced Design

CSS3 FOR ADVANCED DESIGNPaul Trani, Adobe Evangelist

Page 2: CSS3 For Advanced Design

Paul Trani@paultrani [email protected]

• 15 years design experience• 4 year old at heart

Page 3: CSS3 For Advanced Design

The power of the web has arrived for mobile phones

and tablets. CSS3 gives web sites a dynamic,

interactive capability and greater useability. CSS3

adds fine grained controls for designers looking to

bring the web closer to reality.

Page 4: CSS3 For Advanced Design

Examples

• www.awwwards.com • Letter Heads• Cursor Monster• Fish Burst Game

Page 5: CSS3 For Advanced Design
Page 6: CSS3 For Advanced Design

BENEFITS OF CSS3

Page 7: CSS3 For Advanced Design

Reduced development and maintenance time

• Less images, Flash, JavaScript• Streamlined markup

Page 8: CSS3 For Advanced Design

Increased page performance

• Smaller file sizes• Fewer HTTP requests

“Reducing the number of HTTP requests…is the most important guideline for improving performance for first time visitors.”

Yahoo! Exceptional Performance Team

Page 9: CSS3 For Advanced Design

Better search engine placement

• Google uses speed as ranking factor• Real text instead of image or Flash text

Page 10: CSS3 For Advanced Design

Increased usability

• Real text• Optimized styles based on device capabilities

Page 12: CSS3 For Advanced Design

BROWSER SUPPORT

Page 13: CSS3 For Advanced Design

Progressive Enhancement

• Deliver the best possible experience to the widest possible audience.

• Should be as fully featured and functional as possible.

Page 15: CSS3 For Advanced Design

Use the parts of CSS3 that:

• have generally stable syntax• have good support• don't harm non-supporting browsers by their lack.• http://caniuse.com

“Subtle CSS3 effects should be employed as a reward for users who run a modern browser.”- Front-End Development Guidelines, Yahoo

Page 16: CSS3 For Advanced Design

CREATIVE CSS3

Page 17: CSS3 For Advanced Design

• RGBa & HSLa• Gradients• Rounded Corners• Box Shadow• Multiple Backgrounds• @font-face• Media Queries• Visual Effects and Animation

Page 18: CSS3 For Advanced Design

COLOR• RGBa (255, 255, 255, 0.5);• HSLa (360, 100%, 50%, 0.5);

Page 19: CSS3 For Advanced Design

Gradients

• Can be used in every place you can use an image• background: linear-gradient(white, black);• Prefixes:

– -webkit- Chrome and Webkit– -moz- Firefox 3.6+– -o- Opera 11.1 (linear only)– -ms- IE 10

Page 20: CSS3 For Advanced Design

border-radiusborder-radius: 10px;

Page 21: CSS3 For Advanced Design

box-shadowbox-shadow (horizontal offset,

vertical offset, optional blur distance, optional distance, optional color, optional inset)

Page 23: CSS3 For Advanced Design

@ font-face

Page 24: CSS3 For Advanced Design

MEDIA QUERIES

Page 25: CSS3 For Advanced Design

CSS Media Queries for Mobile

• min-width• max-width• device-width• min-device-width• max-device-width• orientation• -webkit-min-device-pixel-ratio

Page 26: CSS3 For Advanced Design

CSS Media Queries

<link rel="stylesheet" type="text/css"media="screen and (max-device-width: 480px)"href="mobile.css" />

Page 27: CSS3 For Advanced Design

TRANSFORMS

Page 28: CSS3 For Advanced Design

Transforms – You can transform anything!opacity: 0.5;-webkit-transition-property: opacity;-webkit-transition-duration: 1s;-webkit-transition-timing-function: ease; opacity: 1;

http://lab.simurai.com/css/tilt-shift

Page 29: CSS3 For Advanced Design

WHAT’S NEXT

Page 31: CSS3 For Advanced Design

THANK YOU

Page 32: CSS3 For Advanced Design

• Slides posted at www.paultrani.com • Flexible Web Design www.flexiblewebbook.com• Stunning CSS3 www.stunningcss3.com • www.w3.org/Style/CSS/current-work• www.caniuse.com