WHAT IS CSS FILTER EFFECT? WHY IT IS SO USEFUL NOW-A-DAYS?

infotechsolz admin
Admin
898 Views
Download
Share this article with:

The CSS filter effect is a strong weapon for the designers now-a-days.You can achieve interesting visual effects through it. This CSS property provides various effects like blur or color shifting on an element before the element is displayed.
It’s commonly used to adjust a background, rendering of an image, or a border.
The idea was originated by Robert O’Callahan (from Mozilla) from Scalable Vector Graphics (SVG) specification. It was created in a vector drawing by applying a number of different pixels based image.
Through Robert’s idea the SVG filters through CSS application came up with normal HTML content.

HOW IT WORKS:

  • blur()
  • brightness()
  • contrast()
  • drop-shadow()
  • grayscale()
  • hue-rotate()
  • invert()
  • opacity()
  • saturate()
  • sepia()
  • url() – for applying SVG filters
  • custom() – “coming soon”

You can use multiple functions at a time just using space separation.

You can set a value for any of the above functions. In case there is an invalid value it will return ‘none’. These functions can expressed value as a percentage (60%) or as a decimal (.60).

HERE IS AN EXAMPLE TO USE THE FUNCTIONS:

For single filter use:

blur-it {

filter: blur(10px);

}

For multiple filter use:

.use-more {

filter: blur(10px) grayscale(10%);

}

grayscale()

filter: grayscale([ <number> | <percentage> ])

BROWSER SUPPORT:

Chrome

31+ (-webkit-)

Safari

7+ (-webkit-)

Firefox

35+

Opera

18+ (-webkit-)

IE

nope

Android

4.4+ (-webkit-)

Will discuss in detail in coming days..stay tuned !

Related Post

the_title();

Building Trust and Credibility: Essential Elements for a Car Accessories Selling Website

infotechsolz admin
Admin

In today's competitive online marketplace, building trust and credibility is crucial for the success of any e-commerce website. For car accessories sellers, this is especially important, as customers are often making significant investments in products like dash cams, car ambient…

Continue Reading 1273 Views
the_title();

Multitasking: Choosing the Smallest fuse of your dynamites!

infotechsolz admin
Admin

Multitasking entails juggling different work activities and shifting attention from one task to another. Basically, the human brain gives permission to do a particular activity at a time. But when we practice any activities multiple times it becomes a…

Continue Reading 3947 Views
the_title();

Leadership Skills – An out of the box thinking that can influence.

infotechsolz admin
Admin

"He was not perfect. He had his complexities. He was not the only one who suffered in a pre-civil rights America, and there were plenty of other charismatic speakers. But Martin Luther King Jr. had a gift. He knew…

Continue Reading 3433 Views