NuvuShadow Text-Shadow - Document Hover - This shadow will move when the cursor moves around the page.
NuvuShadow Text-Shadow - Self Hover this shadow will move when hovering over the text and stop moving on hover out
This box-shadow will move when you move your cursor around the page. The farther you get from the box(div) the more offset and spread the shadow will become.
This box-shadow is using the inset option. The shadow appears inseted inside the box. It will move when you move your cursor around the page. The farther you get from the box(div) the more offset and spread the shadow will become.
$(document).ready(function(){ //make sure the javascript is always wrapped in a document on ready jQuery function $('.sometext').nuvushadow({ // target an element with the class of "sometext" area: document, //the area that moves the shadow on hover set to document ot '.thisH1' type: 'text', //set to 'text' for using text-shadow effect shadowColor: '#000', //color of shadow shadowSpread: 61.1, //spread of the shadow - smaller the number the more spread - larger the less spread(harder density) xgravity: 28, //how much x will shift - higher then number the more centered it will stay ygravity: 29, //how much y will shift - higher then number the more centered it will stay }); });
<body>Here is some text that will get a animating text-shadow!
</body>
$(document).ready(function(){ //make sure the javascript is always wrapped in a document on ready jQuery function $('.somebox').nuvushadow({ // target an element with the class of "sometext" area: document, //the area that moves the shadow on hover set to document ot '.thisDiv' type: 'box', //set to 'box' if using box-shadow effect shadowSpread: 5.1, //the spread of the shadow(density) the smaller the number the softer the spread - larger the harder the spread(less spread) xgravity: 20, //how much x will not shift - higher then number the more centered it will stay ygravity: 10, //how much y will not shift - higher then number the more centered it will stay shadowColor: '#000', //shadow color shadowSize: 1, //how large the shadow will be the lower the smaller the shadow boxinset: 'false', //set to 'true' for box-shadow inset or 'false' for no inset }); });
<body>Here is some text that will get a animating box-shadow!</body>