Skip to content

tbassett44/chakras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Chakra API

demo

Initalize

var chakrabody=new chakras($('#chakras'),{
    chakras:{
        crown:{
            intensity:7
        },
        thirdeye:{
            intensity:6
        },
        throat:{
            intensity:5
        },
        heart:{
            intensity:4
        },
        solarplexus:{
            intensity:3
        },
        sacral:{
            intensity:2
        },
        root:{
            intensity:1
        }
    }
});
chakrabody.start();

Update

chakrabody.set('crown',{intensity:4})

Main Options

{
    background:'https://s3.amazonaws.com/wearenectar/static/chakras.jpg', //background image put in (fit) container
    hara:.5,//hara line - where the chakras will line up relative to the container [0-1]
    radius:.06,//size of each chakra
    chakras:[]
}

Chakra Settings

crown:{
    intensity:7, //number of cycles visible in 1 iteration
    rate:2000, //speed it takes to complete 1 iteration
    y:.105, // % distance from top of container
    color:[178,102,255] //rgb color
}