Join WhatsApp ChannelJoin Now

Waterpipe Background Example in Jquery

Hi Dev,

Today, i we will show you waterpipe background example in jquery. This article will give you simple example of waterpipe background example in jquery. you will waterpipe background example in jquery. In this article, we will implement a waterpipe background example in jquery.

So let’s follow few step to create example of waterpipe background example in jquery.

Example

<!DOCTYPE html>
<html>
<head>
    <title>Waterpipe Background Example in Jquery</title>
    <style>
        #bg-wrapper{
            width: 100%;
            height: 600px;
        }
    </style>
</head>
<body>
    <div id="bg-wrapper">
      <canvas></canvas>
  </div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" ></script>
<script src="https://dragdropsite.github.io/waterpipe.js/waterpipe.js"></script>
<script>
    var smokyBG = $('#bg-wrapper').waterpipe({
        gradientStart: '#000000',
        gradientEnd: '#222222',
        smokeOpacity: 0.1,
        numCircles: 1,
        maxMaxRad: 'auto',
        minMaxRad: 'auto',
        minRadFactor: 0,
        iterations: 10,
        drawsPerFrame: 7,
        lineWidth: 2,
        speed: 0,
        bgColorInner: "#ffb606",
        bgColorOuter: "#666666"
    });
</script>
</html>

I hope it will assist you…

Recommended Posts