Предварительно необходимо скачать и подключить сам скрипт https://sarcadass.github.io/granim.js/
HTML часть
CSS часть
#canvas-basic,
#canvas-radial {
position: relative;
display: block;
width: 100%;
height: 300px;
margin-bottom: 20px;
}
JS часть
Пример