Animated SVG Waves In jQuery - jquery.waves.js

Animated SVG Waves In jQuery - jquery.waves.js
File Size: 3.23 KB
Views Total: 6529
Last Update:
Publish Date:
Official Website: Go to website
License: MIT

jquery.waves.js is a small JavaScript library which lets you create configurable, smoothly animated waves using jQuery, SVG, and GSAP's TweenMax.

Inspired by Mikołaj Stolarski's SVG Waves.

How to use it:

1. Include the necessary jQuery and TweenMax libraries from CDN.

<script src="" 
<script src="" 

2. Create a SVG element for the wave.

<svg width="100%" height="100%" version="1.1" xmlns="" id="example">
  <path id="myWave" d=""></path>

3. Call the plugin to animate the SVG path just like the waves.


4. Config the animated waves with the following options.

  • container: where to render the animated wave
  • color: color of the wave
  • height: height of the wave
  • waveDelta: wave amplitude
  • wavePoints:  how many point will be used to compute the wave
  • speed: animation speed

  // defaults
  container: 'body',
  color: '#33ABF9',
  height: 200,
  waveDelta: 100,
  wavePoints: 3,
  speed: .15

This awesome jQuery plugin is developed by rhcarlosweb. For more Advanced Usages, please check the demo page or visit the official website.