HTML & CSS – Gradients and Transitions

Hello all, this week we went a little bit deeper inside CSS color and performance. Nowadays, CSS3 has allowed us to modify any background page just specifying the color within CSS, instead to upload an image file, as was practiced before.

Using CSS3 gradients, we can define transitions between two or more colors at the same time. There are two types of transitions in CSS3: Linear Gradients and Radial Gradients. Both we can define the percentage of each radial-gradient colors and space color stops. Also in linear gradients we can establish color directions and transparency.

Gradient botton
Linear Gradient – to bottom
Screenshot 2017-03-20 20.53.21-02
Linear Gradient – to left
Screenshot 2017-03-20 20.53.21-01
Linear Gradient – to right
Gradient Mix Colour
Linear Gradient – mix colors
Screenshot 2017-03-20 20.54.28-01
Radial Gradient
Screenshot 2017-03-20 20.54.31-01
Radial Gradient

Using CSS3 transition effects, we can add some animation in those elements. They move one property value to another pre-established it. It can be used in many CSS properties, such as width, height, color and gradients.

Leave a comment