Wave effect with CSS?

CSSWeb DevelopmentFront End Technology

Wave effect is used to give the object a sine wave distortion to make it look wavy.

The following parameters can be used in this filter:

S.NoParameter & Description
1.Add
A value of 1 adds the original image to the waved image, 0 does not.
2.Freq
The number of waves.
3.Light
The strength of the light on the wave (from 0 to 100).
4.Phase
At what degree the sine wave should start (from 0 to 100).
5.Strength
The intensity of the wave effect.

Example

You can try to run the following code to set wave effect:

Live Demo

<html>
   <head>
   </head>
   <body>

      <img src = "/css/images/logo.png"
         alt = "CSS Logo"
         style = "FILTER: Chroma(Color = #000000)
         Wave(Add=0, Freq=1, LightStrength=10, Phase=220, Strength=10)">

      <p>Text Example:</p>
      <div style = "width: 357;
         height: 50;
         font-size: 30pt;
         font-family: Arial Black;
         color: red;
         Filter: Wave(Add=0, Freq=1, LightStrength=10, Phase=20, Strength=20)">CSS Tutorials</div>
   </body>
</html>
raja
Published on 30-Apr-2018 11:27:47
Advertisements