Make 10 artistic effects with various CSS filters

Source: Internet
Author: User
If CSS filters are flexibly applied and combined, we can achieve many unexpected results. This is an example of the effect for your reference.
Effect 1:

The shadow filter is used for this effect. The code is as follows:
Filter: shadow (color = black, direction = 135)
Result 2:

The code is as follows:
Filter: blur (direction = 135, strength = 10)
Effect 3:

The code is as follows:
Filter: dropshadow (color = #888888, offx = 8, offy = 8, positive = 1)
Effect 4:

The code is as follows:
Filter: glow (color = royalblue, strength = 5)
Effect 5:

Two filters are used for this effect: shadow and alpha. The code is as follows:
Filter: alpha (opacity = 100, finishiopacity = 0, style = 1)
Shadow (color = # ff3366, directive = 135)
Effect 6:

This effect also uses two filters, mask and shadow, which are the same as the top example in this article. The color is different. The code is as follows:
Filter: mask (color = # f7f7f7) shadow (color = royalblue, direction = 135)
Note: The mask color must be consistent with the webpage background color. The font color is determined by shadow.
Effect 7:

This effect is similar to effect 6. In effect 6, mask uses the same color as the background. In this example, mask uses red. Similarly, the font color is determined by shadow. The code is as follows:
Filter: mask (color = red)
Shadow (color = black, directive = 135)
Effect 8:

If the font of effect 6 is Yin Wen, the font of the effect should be Yang Wen. Use two filters to implement mask and dropshadow. Note that the color of the mask must be the same as that of the webpage background color, alternatively, you can use mask and chroma in pairs to achieve the same effect (as described below ). The code is as follows:
Filter: mask (color = # f7f7f7f)
Dropshadow (color = royalblue, offx =-3, offy =-3, positive = 1)
Effect 9:

The Halo text uses two filters: glow and droshadow. The code is as follows:
Filter: glow (color = pink, strength = 10)
Dropshadow (color = royalblue, offx = 3, offy = 3, positive = 1)
Effect 10:

You can use the glow filter to make hollow words. You can set the font color to the background color, and then set the strenght value of the glow filter to 1 or 2. The code for this effect is as follows:
Filter: glow (color = green, strength = 2)
Shadow (color = #66cc99, directive = 135)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.