Create falloff shadows using CSS

WBOY
Release: 2023-08-26 08:25:09
forward
1532 people have browsed it

使用 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>
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!