LESS - Color Operation


Advertisements

Description

LESS provides number of useful operation functions to alter and manipulate colors in different ways and take parameters in the same units. LESS supports some of the Color Operation Functions as shown in the table below −

Sr.No. Directives & Description
1 saturate

It varies the intensity or saturation of a color in the element.

2 desaturate

It decreases the intensity or saturation of a color in the element.

3 lighten

It increases the lightness of a color in the element.

4 darken

It varies the intensity or saturation of a color in the element.

5 fadein

It increases the opacity for selected elements.

6 fadeout

It decreases the opacity for selected elements.

7 fade

It is used to set the transparency of a color for selected elements.

8 spin

It is used to rotate the angle of a color for selected elements.

9 mix

It mixes the two colors along with the opacity.

10 tint

It mixes the color with white as you decrease the proportion of the color.

11 shade

It mixes the color with black as you decrease the proportion of the color.

12 greyscale

It discards the saturation from a color in the selected elements.

13 contrast

It sets the contrast for the colors in the element.

Useful Video Courses


Video

LESS Online Training

20 Lectures 1 hours

Anadi Sharma

Video

Serverless Development with AWS Lambda and NodeJS

44 Lectures 7.5 hours

Eduonix Learning Solutions

Video

Delegation Mastery: Learn to Outsource Your Work and Do Less

17 Lectures 2 hours

Zach Miller

Video

Create a WordPress Website in 24 Hours or Less Guaranteed

23 Lectures 1.5 hours

Zach Miller

Video

Become PHP Facebook Developer: Password-Less Authentication

34 Lectures 4 hours

Syed Raza

Video

AWS LAMBDA- Serverless Computing

31 Lectures 3 hours

Harshit Srivastava

Advertisements