Why is it called a pseudo-class?What are the different types of transition properties in CSS?What are gradients in CSS ?
Why is it called a pseudo-class?What are the different types of transition properties in CSS?What are gradients in CSS ?
- Why is it called a pseudo-class?
Ans:- It is called as a pseudo-class because it selects the elements that are in a specific state and the state may be hover,focus and active etc.
- What are the different types of transition properties in CSS?
Ans:- transition: width 2s;
**transition-delay:** 3s; **transition-duration:** 2s;
**transition-property:** width; **transition-timing-function:** ease-in;
- What are gradients in CSS ?
Ans:-CSS gradients help to display smooth transitions between two or more specified colours.
It is of three types.
Linear Gradients: It goes down/up/left/right/diagonally.
Radial Gradients: It is defined by their centre.
Conic Gradients: It is rotated around a centre point.