UNPKG

@fabioricali/siriwavejs

Version:

The Siri wave replicated in a JS library.

33 lines (31 loc) 536 B
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <style> body { background: #000; } #siric { width: 400px; height: 100px; display: block; margin: 0 auto; margin-top: 100px; } </style> <body> <div id="siric"></div> <script src="siriwave.js"></script> <script> var SW = new SiriWave({ width: 400, height: 100, speed: 0.12, amplitude: 1, container: document.getElementById('siric'), autostart: true, }); </script> </body> </html>