Home  >  Article  >  Web Front-end  >  Create falloff shadows using CSS

Create falloff shadows using CSS

WBOY
WBOYforward
2023-08-26 08:25:091548browse

使用 CSS 创建衰减阴影

#The Shadow filter creates a falloff shadow in a specified direction and color.

The following parameters can be used in this filter−

2##Example
Serial number

Parameters and description

1

##ColorYou want shadow color.

DirectionBlurred direction, clockwise Direction, in 45 degree increments. The default value is 270 (left).

0 = Top

45 = Top right

90 = Right

135 = Bottom right

180 = Bottom

225 = Bottom left

270 = Left side

315 = Top left

You can try running the following code to implement the shadow filter−

Demo

<html>
   <head>
   </head>

   <body>

      <img src="/css/images/logo.png" alt="CSS Logo"style="FILTER: Chroma(Color = #000000) Shadow(Color=#00FF00, Direction=225)">

      <p>Text Example:</p>

      <div style="width: 357;
         height: 50;
         font-size: 30pt;
         font-family:
         Arial Black;
         color: red;
         Filter: Shadow(Color=#0000FF, Direction=225)">CSS Tutorials</div>
   </body>

</html>

The above is the detailed content of Create falloff shadows using CSS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete