SlideShare a Scribd company logo
CSS 3
Difference between CSS and CSS 3
 The CSS3 version supports many more browsers than CSS2, but be sure
to test it on all operating systems and browsers.
 Other major changes/additions include:
 * New Combinator
 * New CSS Selectors
 * New Pseudoelements
 * New Style properties
 Now let us discuss these in detail.
 Combinator New addition of General Sibling Combinator is done to
match sibling elements of a given element through tilde (~)
Combinator.
 CSS Selectors
 While CSS2 had ‘simple selectors’, the new version calls them the
components as ‘a sequence of simple selectors’.
 PseudoElements
 Many Pseudo Elements have been added that allow indepth yet
easy styling and a new convention of double colons ‘::’ has been
introduced.
 Style Properties
 New Background Style Properties Multiple Background images can
be layered in the box using different elements like background
image, position and repeat.
CSS3 Transitions
With CSS3, we can add an effect when changing from one style to
another, without using Flash or JavaScript.
CSS3 transitions are effects that let an element gradually change
from one style to another.
To do this, you must specify two things:
the CSS property you want to add an effect to
the duration of the effect
CSS3 Transitions
Example
Add a transition effect on the width property, with a duration of 2
seconds:
div {
‐webkit transition: width 2s; /* For Safari 3.1 to 6.0 */‐
transition: width 2s;
}
div:hover{
width : 300px;
}
 Example
 Add transition effects on width, height, and transformation:
div {
‐webkit transition: width 2s, height 2s, webkit transform 2s;‐ ‐ ‐
/* For Safari 3.1 to 6.0 */
transition: width 2s, height 2s, transform 2s;
}
CSS3 Animations
 CSS3 animations can replace animations created by Flash and
JavaScript in existing web pages.
 Numbers followed by webkit, moz, or ospecify the first version that
worked with a prefix.
 CSS3 @keyframes Rule
 The @keyframes rule is where the animation is created.
 Specify a CSS style inside the @keyframes rule and the animation
will gradually
 change from the current style to the new style.
 When an animation is created in the @keyframe rule, you must bind
it to a selector, otherwise the animation will have no effect.
 Bind the animation to a selector (element) by specifying at least
these two properties:
 the name of the animation
 the duration of the animation
 Example :
 Bind the "myfirst" animation to the <div> element. Animation duration: 5 seconds:
div {
‐webkit animation: myfirst 5s; /* Chrome, Safari, Opera */‐
animation: myfirst 5s;
}
/* Chrome, Safari, Opera */
@ webkit keyframes myfirst {‐ ‐
from {background: red;}
to {background: yellow;}
}
/* Standard syntax */
@keyframes myfirst {
from {background: red;}
to {background: yellow;}
}
Gradients Background
 CSS3 gradients let you display smooth transitions between two or
more specified colors.
 Earlier, you had to use images for these effects. However, by using
CSS3 gradients you can reduce download time and bandwidth
usage. In addition, elements with gradients look better when
zoomed, because the gradient is generated by the browser.
 CSS3 defines two types of gradients:
 Linear Gradients (goes down/up/left/right/diagonally)
 Radial Gradients (defined by their center)
CSS3 Linear Gradients
 To create a linear gradient you must define at least two color stops.
Color stops are the colors you want to render smooth transitions
among. You can also set a starting point and a direction (or an
angle) along with the gradient effect.
 Syntax :
background: linear gradient(‐ direction, color stop1‐ , color stop2, ...‐ );
 Linear Gradient Top to Bottom (this is default)
 Example
A linear gradient from top to bottom:
#grad {
background: webkit linear gradient(red, blue); /* For Safari 5.1 to‐ ‐ ‐ 6.0
*/
background: o linear gradient(red, blue); /* For Opera 11.1 to 12.0‐ ‐ ‐ */
background: moz linear gradient(red, blue); /* For Firefox 3.6 to 15‐ ‐ ‐ */
background: linear gradient(red, blue); /* Standard syntax */‐
}
 Linear Gradient Diagonal
 You can make a gradient diagonally by specifying both the horizontal and vertical
starting positions.
Example :
A linear gradient that starts at top left (and goes to bottom right):
#grad {
background: webkit linear gradient(left top, red , blue); /* For‐ ‐ ‐ Safari 5.1 to 6.0 */
background: o linear gradient(bottom right, red, blue); /* For Opera‐ ‐ ‐ 11.1 to 12.0 */
background: moz linear gradient(bottom right, red, blue); /* For‐ ‐ ‐ Firefox 3.6 to 15 */
background: linear gradient(to bottom right, red , blue); /* Standard‐ syntax */
}
CSS3 Radial Gradients
 A radial gradient is defined by its center.
 To create a radial gradient you must also define at least two color
stops.
 Syntax
 background: radial gradient(‐ shape size at position, start color, ...,‐
lastcolor);
 Radial Gradient Evenly Spaced Color Stops (this is default)
 Example
 A radial gradient with evenly spaced color stops:
#grad {
background: webkit radial gradient(red, green, blue); /* Safari 5.1‐ ‐ ‐ to 6.0 */
background: o radial gradient(red, green, blue); /* For Opera 11.6 to‐ ‐ ‐ 12.0 */
background: moz radial gradient(red, green, blue); /* For Firefox 3.6‐ ‐ ‐ to 15 */
background: radial gradient(red, green, blue); /* Standard syntax */‐
}
 Set Shape
 The shape parameter defines the shape. It can take the value circle or ellipse.
The default value is ellipse.
 Example
A radial gradient with the shape of a circle:
#grad {
background: webkit radial gradient(circle, red, yellow, green); /*‐ ‐ ‐ Safari */
background: o radial gradient(circle, red, yellow, green); /* Opera‐ ‐ ‐ 11.6 to 12.0 */
background: moz radial gradient(circle, red, yellow, green); /*‐ ‐ ‐ Firefox 3.6 to 15 */
background: radial gradient(circle, red, yellow, green); /* Standard‐ syntax */
}
 Repeating a radialgradient
 The repeatingradialgradient() function is used to repeat radial gradients:
 Example
 A repeating radial gradient:
#grad {
/* For Safari 5.1 to 6.0 */
background: webkit repeating radial gradient(red, yellow 10%, green‐ ‐ ‐ ‐ 15%);
/* For Opera 11.6 to 12.0 */
background: o repeating radial gradient(red, yellow 10%, green 15%);‐ ‐ ‐ ‐
/* For Firefox 3.6 to 15 */
background: moz repeating radial gradient(red, yellow 10%, green‐ ‐ ‐ ‐ 15%);
/* Standard syntax */
background: repeating radial gradient(red, yellow 10%, green 15%);‐ ‐
}

More Related Content

What's hot

CSS3 Implementable Features
CSS3 Implementable FeaturesCSS3 Implementable Features
CSS3 Implementable Features
Estelle Weyl
 
I Can't Believe It's Not Flash
I Can't Believe It's Not FlashI Can't Believe It's Not Flash
I Can't Believe It's Not Flash
Thomas Fuchs
 
Open Web Camp: CSS3 Implementable Features
Open Web Camp: CSS3 Implementable FeaturesOpen Web Camp: CSS3 Implementable Features
Open Web Camp: CSS3 Implementable Features
Estelle Weyl
 
Svg
SvgSvg
Interface Styling & Scripting on WebKit Mobile
Interface Styling & Scripting on WebKit MobileInterface Styling & Scripting on WebKit Mobile
Interface Styling & Scripting on WebKit Mobile
David Aurelio
 
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
Exploring fractals in CSS, @fronttrends, Warsaw, 2015Exploring fractals in CSS, @fronttrends, Warsaw, 2015
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
pixelass
 
Documento de acrobat2
Documento de acrobat2Documento de acrobat2
Documento de acrobat2
fraytuck
 
Seg code
Seg codeSeg code
Seg code
wi7sonjoseph
 
Svg Basics
Svg BasicsSvg Basics
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass SusyBreaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
James Steinbach
 
Implementation of c string functions
Implementation of c string functionsImplementation of c string functions
Implementation of c string functions
mohamed sikander
 
Fasten RWD Development with Sass
Fasten RWD Development with SassFasten RWD Development with Sass
Fasten RWD Development with Sass
Sven Wolfermann
 
React & Radium (Colin Megill)
React & Radium (Colin Megill) React & Radium (Colin Megill)
React & Radium (Colin Megill)
Future Insights
 
Processing資料(8) 文字
Processing資料(8) 文字Processing資料(8) 文字
Processing資料(8) 文字
reona396
 
Adaptive theming using compass susy grid
Adaptive theming using compass susy gridAdaptive theming using compass susy grid
Adaptive theming using compass susy grid
soovor
 
Introduction to open gl in android droidcon - slides
Introduction to open gl in android   droidcon - slidesIntroduction to open gl in android   droidcon - slides
Introduction to open gl in android droidcon - slides
tamillarasan
 
Vim cheat-sheet-en
Vim cheat-sheet-enVim cheat-sheet-en
Vim cheat-sheet-en
Yue-Peng Guo
 
Simplify your CSS with Stylus and Nib
Simplify your CSS with Stylus and NibSimplify your CSS with Stylus and Nib
Simplify your CSS with Stylus and Nib
Christian Joudrey
 
Interactive Graphics
Interactive GraphicsInteractive Graphics
Interactive Graphics
Blazing Cloud
 

What's hot (19)

CSS3 Implementable Features
CSS3 Implementable FeaturesCSS3 Implementable Features
CSS3 Implementable Features
 
I Can't Believe It's Not Flash
I Can't Believe It's Not FlashI Can't Believe It's Not Flash
I Can't Believe It's Not Flash
 
Open Web Camp: CSS3 Implementable Features
Open Web Camp: CSS3 Implementable FeaturesOpen Web Camp: CSS3 Implementable Features
Open Web Camp: CSS3 Implementable Features
 
Svg
SvgSvg
Svg
 
Interface Styling & Scripting on WebKit Mobile
Interface Styling & Scripting on WebKit MobileInterface Styling & Scripting on WebKit Mobile
Interface Styling & Scripting on WebKit Mobile
 
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
Exploring fractals in CSS, @fronttrends, Warsaw, 2015Exploring fractals in CSS, @fronttrends, Warsaw, 2015
Exploring fractals in CSS, @fronttrends, Warsaw, 2015
 
Documento de acrobat2
Documento de acrobat2Documento de acrobat2
Documento de acrobat2
 
Seg code
Seg codeSeg code
Seg code
 
Svg Basics
Svg BasicsSvg Basics
Svg Basics
 
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass SusyBreaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
 
Implementation of c string functions
Implementation of c string functionsImplementation of c string functions
Implementation of c string functions
 
Fasten RWD Development with Sass
Fasten RWD Development with SassFasten RWD Development with Sass
Fasten RWD Development with Sass
 
React & Radium (Colin Megill)
React & Radium (Colin Megill) React & Radium (Colin Megill)
React & Radium (Colin Megill)
 
Processing資料(8) 文字
Processing資料(8) 文字Processing資料(8) 文字
Processing資料(8) 文字
 
Adaptive theming using compass susy grid
Adaptive theming using compass susy gridAdaptive theming using compass susy grid
Adaptive theming using compass susy grid
 
Introduction to open gl in android droidcon - slides
Introduction to open gl in android   droidcon - slidesIntroduction to open gl in android   droidcon - slides
Introduction to open gl in android droidcon - slides
 
Vim cheat-sheet-en
Vim cheat-sheet-enVim cheat-sheet-en
Vim cheat-sheet-en
 
Simplify your CSS with Stylus and Nib
Simplify your CSS with Stylus and NibSimplify your CSS with Stylus and Nib
Simplify your CSS with Stylus and Nib
 
Interactive Graphics
Interactive GraphicsInteractive Graphics
Interactive Graphics
 

Viewers also liked

Workshop Advance CSS3 animation
Workshop Advance CSS3 animationWorkshop Advance CSS3 animation
Workshop Advance CSS3 animation
Pitchayanida Khumwichai
 
Css3 animation
Css3 animationCss3 animation
Css3 animation
Ted Hsu
 
Better CSS with Compass/Sass
Better CSS with Compass/SassBetter CSS with Compass/Sass
Better CSS with Compass/Sass
Johan Ronsse
 
Sass: Introduction
Sass: IntroductionSass: Introduction
Sass: Introduction
BalaKrishna Kolliboina
 
LESS, SASS, HAML: 4 буквы, изменившие frontend development
LESS, SASS, HAML: 4 буквы, изменившие frontend developmentLESS, SASS, HAML: 4 буквы, изменившие frontend development
LESS, SASS, HAML: 4 буквы, изменившие frontend development
Konstantin Kudryashov
 
High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010
Nicholas Zakas
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
chriseppstein
 
Sass and compass workshop
Sass and compass workshopSass and compass workshop
Sass and compass workshop
Shaho Toofani
 
JavaScript and DOM Pattern Implementation
JavaScript and DOM Pattern ImplementationJavaScript and DOM Pattern Implementation
JavaScript and DOM Pattern Implementation
davejohnson
 
CSS3
CSS3CSS3
CSS3
Singleton
 

Viewers also liked (10)

Workshop Advance CSS3 animation
Workshop Advance CSS3 animationWorkshop Advance CSS3 animation
Workshop Advance CSS3 animation
 
Css3 animation
Css3 animationCss3 animation
Css3 animation
 
Better CSS with Compass/Sass
Better CSS with Compass/SassBetter CSS with Compass/Sass
Better CSS with Compass/Sass
 
Sass: Introduction
Sass: IntroductionSass: Introduction
Sass: Introduction
 
LESS, SASS, HAML: 4 буквы, изменившие frontend development
LESS, SASS, HAML: 4 буквы, изменившие frontend developmentLESS, SASS, HAML: 4 буквы, изменившие frontend development
LESS, SASS, HAML: 4 буквы, изменившие frontend development
 
High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010High Performance JavaScript - WebDirections USA 2010
High Performance JavaScript - WebDirections USA 2010
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
 
Sass and compass workshop
Sass and compass workshopSass and compass workshop
Sass and compass workshop
 
JavaScript and DOM Pattern Implementation
JavaScript and DOM Pattern ImplementationJavaScript and DOM Pattern Implementation
JavaScript and DOM Pattern Implementation
 
CSS3
CSS3CSS3
CSS3
 

Similar to CSS3 : Animation ,Transitions, Gradients

Css gradients
Css gradientsCss gradients
Css gradients
skyler hildreth
 
css trasition explanation about our project
css trasition explanation about our projectcss trasition explanation about our project
css trasition explanation about our project
DivPatel17
 
Css3
Css3Css3
Cordova training - Day 3 : Advanced CSS 3
Cordova training - Day 3 : Advanced CSS 3Cordova training - Day 3 : Advanced CSS 3
Cordova training - Day 3 : Advanced CSS 3
Binu Paul
 
CSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and ConsCSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and Cons
Sanjoy Kr. Paul
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
Wynn Netherland
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
Erin M. Kidwell
 
Css3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryCss3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQuery
Andrea Verlicchi
 
LESS : The dynamic stylesheet language
LESS : The dynamic stylesheet languageLESS : The dynamic stylesheet language
LESS : The dynamic stylesheet language
Katsunori Tanaka
 
CSS 3
CSS 3CSS 3
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
Mario Noble
 
Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.
Eugene Nor
 
@Agawish creating a stunning ui with oracle adf faces, using sass
@Agawish   creating a stunning ui with oracle adf faces, using sass@Agawish   creating a stunning ui with oracle adf faces, using sass
@Agawish creating a stunning ui with oracle adf faces, using sass
Amr Gawish
 
Css 3 session1
Css 3 session1Css 3 session1
UNIT 3.ppt
UNIT 3.pptUNIT 3.ppt
UNIT 3.ppt
kavi806657
 
Dallas Drupal Days 2012 - Introduction to less sass-compass
Dallas Drupal Days 2012  - Introduction to less sass-compassDallas Drupal Days 2012  - Introduction to less sass-compass
Dallas Drupal Days 2012 - Introduction to less sass-compass
Chris Lee
 
Css3 101
Css3 101Css3 101
Css3 101
Ignacio Coloma
 
CSS Extenders
CSS ExtendersCSS Extenders
CSS Extenders
Idan Gazit
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
Aiman Hud
 
HTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesignerHTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesigner
Matteo Magni
 

Similar to CSS3 : Animation ,Transitions, Gradients (20)

Css gradients
Css gradientsCss gradients
Css gradients
 
css trasition explanation about our project
css trasition explanation about our projectcss trasition explanation about our project
css trasition explanation about our project
 
Css3
Css3Css3
Css3
 
Cordova training - Day 3 : Advanced CSS 3
Cordova training - Day 3 : Advanced CSS 3Cordova training - Day 3 : Advanced CSS 3
Cordova training - Day 3 : Advanced CSS 3
 
CSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and ConsCSS Less framework overview, Pros and Cons
CSS Less framework overview, Pros and Cons
 
Accelerated Stylesheets
Accelerated StylesheetsAccelerated Stylesheets
Accelerated Stylesheets
 
Class 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddleClass 4 handout w css3 using j fiddle
Class 4 handout w css3 using j fiddle
 
Css3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryCss3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQuery
 
LESS : The dynamic stylesheet language
LESS : The dynamic stylesheet languageLESS : The dynamic stylesheet language
LESS : The dynamic stylesheet language
 
CSS 3
CSS 3CSS 3
CSS 3
 
Preprocessor presentation
Preprocessor presentationPreprocessor presentation
Preprocessor presentation
 
Write LESS. DO more.
Write LESS. DO more.Write LESS. DO more.
Write LESS. DO more.
 
@Agawish creating a stunning ui with oracle adf faces, using sass
@Agawish   creating a stunning ui with oracle adf faces, using sass@Agawish   creating a stunning ui with oracle adf faces, using sass
@Agawish creating a stunning ui with oracle adf faces, using sass
 
Css 3 session1
Css 3 session1Css 3 session1
Css 3 session1
 
UNIT 3.ppt
UNIT 3.pptUNIT 3.ppt
UNIT 3.ppt
 
Dallas Drupal Days 2012 - Introduction to less sass-compass
Dallas Drupal Days 2012  - Introduction to less sass-compassDallas Drupal Days 2012  - Introduction to less sass-compass
Dallas Drupal Days 2012 - Introduction to less sass-compass
 
Css3 101
Css3 101Css3 101
Css3 101
 
CSS Extenders
CSS ExtendersCSS Extenders
CSS Extenders
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
HTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesignerHTML5 e Css3 - 4 | WebMaster & WebDesigner
HTML5 e Css3 - 4 | WebMaster & WebDesigner
 

Recently uploaded

Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
Techgropse Pvt.Ltd.
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 

Recently uploaded (20)

Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 

CSS3 : Animation ,Transitions, Gradients

  • 2. Difference between CSS and CSS 3  The CSS3 version supports many more browsers than CSS2, but be sure to test it on all operating systems and browsers.  Other major changes/additions include:  * New Combinator  * New CSS Selectors  * New Pseudoelements  * New Style properties
  • 3.  Now let us discuss these in detail.  Combinator New addition of General Sibling Combinator is done to match sibling elements of a given element through tilde (~) Combinator.  CSS Selectors  While CSS2 had ‘simple selectors’, the new version calls them the components as ‘a sequence of simple selectors’.
  • 4.  PseudoElements  Many Pseudo Elements have been added that allow indepth yet easy styling and a new convention of double colons ‘::’ has been introduced.  Style Properties  New Background Style Properties Multiple Background images can be layered in the box using different elements like background image, position and repeat.
  • 5. CSS3 Transitions With CSS3, we can add an effect when changing from one style to another, without using Flash or JavaScript. CSS3 transitions are effects that let an element gradually change from one style to another. To do this, you must specify two things: the CSS property you want to add an effect to the duration of the effect
  • 6. CSS3 Transitions Example Add a transition effect on the width property, with a duration of 2 seconds: div { ‐webkit transition: width 2s; /* For Safari 3.1 to 6.0 */‐ transition: width 2s; } div:hover{ width : 300px; }
  • 7.  Example  Add transition effects on width, height, and transformation: div { ‐webkit transition: width 2s, height 2s, webkit transform 2s;‐ ‐ ‐ /* For Safari 3.1 to 6.0 */ transition: width 2s, height 2s, transform 2s; }
  • 8. CSS3 Animations  CSS3 animations can replace animations created by Flash and JavaScript in existing web pages.  Numbers followed by webkit, moz, or ospecify the first version that worked with a prefix.  CSS3 @keyframes Rule  The @keyframes rule is where the animation is created.  Specify a CSS style inside the @keyframes rule and the animation will gradually  change from the current style to the new style.
  • 9.  When an animation is created in the @keyframe rule, you must bind it to a selector, otherwise the animation will have no effect.  Bind the animation to a selector (element) by specifying at least these two properties:  the name of the animation  the duration of the animation
  • 10.  Example :  Bind the "myfirst" animation to the <div> element. Animation duration: 5 seconds: div { ‐webkit animation: myfirst 5s; /* Chrome, Safari, Opera */‐ animation: myfirst 5s; } /* Chrome, Safari, Opera */ @ webkit keyframes myfirst {‐ ‐ from {background: red;} to {background: yellow;} } /* Standard syntax */ @keyframes myfirst { from {background: red;} to {background: yellow;} }
  • 11. Gradients Background  CSS3 gradients let you display smooth transitions between two or more specified colors.  Earlier, you had to use images for these effects. However, by using CSS3 gradients you can reduce download time and bandwidth usage. In addition, elements with gradients look better when zoomed, because the gradient is generated by the browser.  CSS3 defines two types of gradients:  Linear Gradients (goes down/up/left/right/diagonally)  Radial Gradients (defined by their center)
  • 12. CSS3 Linear Gradients  To create a linear gradient you must define at least two color stops. Color stops are the colors you want to render smooth transitions among. You can also set a starting point and a direction (or an angle) along with the gradient effect.  Syntax : background: linear gradient(‐ direction, color stop1‐ , color stop2, ...‐ );
  • 13.  Linear Gradient Top to Bottom (this is default)  Example A linear gradient from top to bottom: #grad { background: webkit linear gradient(red, blue); /* For Safari 5.1 to‐ ‐ ‐ 6.0 */ background: o linear gradient(red, blue); /* For Opera 11.1 to 12.0‐ ‐ ‐ */ background: moz linear gradient(red, blue); /* For Firefox 3.6 to 15‐ ‐ ‐ */ background: linear gradient(red, blue); /* Standard syntax */‐ }
  • 14.  Linear Gradient Diagonal  You can make a gradient diagonally by specifying both the horizontal and vertical starting positions. Example : A linear gradient that starts at top left (and goes to bottom right): #grad { background: webkit linear gradient(left top, red , blue); /* For‐ ‐ ‐ Safari 5.1 to 6.0 */ background: o linear gradient(bottom right, red, blue); /* For Opera‐ ‐ ‐ 11.1 to 12.0 */ background: moz linear gradient(bottom right, red, blue); /* For‐ ‐ ‐ Firefox 3.6 to 15 */ background: linear gradient(to bottom right, red , blue); /* Standard‐ syntax */ }
  • 15. CSS3 Radial Gradients  A radial gradient is defined by its center.  To create a radial gradient you must also define at least two color stops.  Syntax  background: radial gradient(‐ shape size at position, start color, ...,‐ lastcolor);
  • 16.  Radial Gradient Evenly Spaced Color Stops (this is default)  Example  A radial gradient with evenly spaced color stops: #grad { background: webkit radial gradient(red, green, blue); /* Safari 5.1‐ ‐ ‐ to 6.0 */ background: o radial gradient(red, green, blue); /* For Opera 11.6 to‐ ‐ ‐ 12.0 */ background: moz radial gradient(red, green, blue); /* For Firefox 3.6‐ ‐ ‐ to 15 */ background: radial gradient(red, green, blue); /* Standard syntax */‐ }
  • 17.  Set Shape  The shape parameter defines the shape. It can take the value circle or ellipse. The default value is ellipse.  Example A radial gradient with the shape of a circle: #grad { background: webkit radial gradient(circle, red, yellow, green); /*‐ ‐ ‐ Safari */ background: o radial gradient(circle, red, yellow, green); /* Opera‐ ‐ ‐ 11.6 to 12.0 */ background: moz radial gradient(circle, red, yellow, green); /*‐ ‐ ‐ Firefox 3.6 to 15 */ background: radial gradient(circle, red, yellow, green); /* Standard‐ syntax */ }
  • 18.  Repeating a radialgradient  The repeatingradialgradient() function is used to repeat radial gradients:  Example  A repeating radial gradient: #grad { /* For Safari 5.1 to 6.0 */ background: webkit repeating radial gradient(red, yellow 10%, green‐ ‐ ‐ ‐ 15%); /* For Opera 11.6 to 12.0 */ background: o repeating radial gradient(red, yellow 10%, green 15%);‐ ‐ ‐ ‐ /* For Firefox 3.6 to 15 */ background: moz repeating radial gradient(red, yellow 10%, green‐ ‐ ‐ ‐ 15%); /* Standard syntax */ background: repeating radial gradient(red, yellow 10%, green 15%);‐ ‐ }