CSS Gradients | CSS Radial Gradients - CSS Tutorial 86

preview_player
Показать описание
Notes for You:: CSS Gradients | CSS Radial Gradients - CSS Tutorial 86
- is used to create a background consisting of transition between two or more colors that radiates from given origin.

Syntax:
background: radial-gradient(shape at position, color-stop1, color-stop2, ..., last-color-stop);
OR
background-image: radial-gradient(shape at position, color-stop1, color-stop2, ..., last-color-stop);

shape at position:
- shape: indicates the shape of gradient
Values:
circle, ellipse

- position: indicates the origin of gradient
Values:
top left, top center, top right
center left, center center, center right
bottom left, bottom center, bottom right
offset-x-px offset-y-px
offset-x-% offset-y-%

color-stop: color position
- color : color name, hex color value , rgb(0-255,0-255,0-255), rgba(0-255,0-255,0-255,0-1)
- position: px or %

Example:
background: radial-gradient(circle at center center, red 0%, blue 100%);
background: radial-gradient(ellipse at center center, red 0%, blue 100%);
background: radial-gradient(circle at top left, red 0%, blue 100%);
background: radial-gradient(circle at center center, red 0%, green 50%, blue 100%);

Note:
- If you use same color side by side; you can create color strip of solid colors
Example:
background: radial-gradient(circle at center center, red 0%, red 25%, green 25%,green 50%,blue 50%, blue 100%);

repeating-radial-gradient syntax:
background: repeating-radial-gradient(shape at position, color-stop1, color-stop2, ..., last-color-stop);
OR
background-image: repeating-radial-gradient(shape at position, color-stop1, color-stop2, ..., last-color-stop);

Example:
background: repeating-radial-gradient(circle at center center, black 0px,black 20px, white 20px,white 40px);

=========================================

Follow the link for next video:
CSS Tutorial 87 - CSS transform Property | CSS transform functions

Follow the link for previous video:
CSS Tutorial 85 - CSS Linear Gradient Background Tutorial

=========================================

CSS Tutorials Playlist:-

=========================================
Watch My Other Useful Tutorials:-

HTML Tutorials Playlist:-

JavaScript Tutorials Playlist:-

jQuery Tutorials Playlist:-

=========================================

► Subscribe to our YouTube channel:

► Visit our Website:

=========================================
Hash Tags:-
#ChidresTechTutorials #CSS #CSSTutorial
Рекомендации по теме
Комментарии
Автор

SUBSCRIBE, SHARE & SUPPORT:
VISIT & LEARN AT FREE OF COST:

ChidresTechTutorials
Автор

Thanks mate, very helpful and thorough video, helped me a lot :)

letsrazzledazzle
Автор

I know, it was 4 years ago, but today your video really help me. By some reasons I can't find anywhere else example for circle at 50% 15% etc. Everywhere only circle at top, circle at left etc...
Thank you.
PS: sry for my english.

prohanya
welcome to shbcf.ru