This commit is contained in:
thednp 2016-03-17 09:00:32 +02:00
parent 3a7857bbe5
commit afdfa1ae49

View file

@ -224,7 +224,7 @@ K.pp['boxShadow'] = function(property,value,element){
// processProperty for boxShadow, builds basic structure with ready to tween values
if (typeof value === 'string'){
var color, inset = false;
var color, inset = 'none';
// make sure to always have the inset last if possible
inset = /inset/.test(value) ? 'inset' : inset;
value = /inset/.test(value) ? value.replace(/(\s+inset|inset+\s)/g,'') : value;
@ -298,7 +298,7 @@ var myBSTween3 = KUTE.fromTo('selector', {boxShadow: [5, 5, 0, '#069', 'inset']}
<li><kbd class="bg-lime">KUTE.truD(value)</kbd> a function that accepts String and Number and returns a <code>{v: 150, u: 'px'}</code> object for any box model or a single numeric value based property and make it ready to tween.</li>
<li><kbd class="bg-lime">KUTE.truC(color)</kbd> a function that returns an <code>{r: 150, g: 150, b: 0}</code> color object ready to tween; if the color value is a <a href="http://www.w3schools.com/colors/colors_names.asp" target="_blank">web safe color</a>, the IE9+ browsers will be able to return the rgb object we need.</li>
<li><kbd class="bg-lime">KUTE.htr(hex)</kbd> a function that accepts HEX formatted colors and returns an <code>{r: 150, g: 150, b: 0}</code> color object;</li>
<li><kbd class="bg-lime">KUTE.rth(rgb)</kbd> a function that accepts RGBa formatted colors and returns a <code>#006699</code> color string;</li>
<li><kbd class="bg-lime">KUTE.rth(rgb)</kbd> a function that accepts RGBa formatted colors and returns a <code>#006699</code> color string.</li>
</ul>
<ul id="share" class="nav">