Minor issue with opacity, scale.

This commit is contained in:
thednp 2016-03-25 19:56:46 +02:00
parent a1e983c8a2
commit cb48bf3c90
7 changed files with 11 additions and 11 deletions

View file

@ -11,7 +11,7 @@ var translateExamples = document.getElementById('translate-examples'),
trx = translateExamples.getElementsByTagName('div')[1],
trry = translateExamples.getElementsByTagName('div')[2],
trz = translateExamples.getElementsByTagName('div')[3],
tr2dTween = KUTE.to(tr2d, {translate:170}, {easing:'easingCubicOut', yoyo:true, repeat: 1, duration:1500}),
tr2dTween = KUTE.to(tr2d, {translate:[170,0]}, {easing:'easingCubicOut', yoyo:true, repeat: 1, duration:1500}),
trxTween = KUTE.to(trx, {translateX:-170}, {easing:'easingCubicOut', yoyo:true, repeat: 1, duration:1500}),
trryTween = KUTE.to(trry, {translate3d:[0,170,0]}, {easing:'easingCubicOut', yoyo:true, repeat: 1, duration:1500}),
trzTween = KUTE.to(trz, {translate3d:[0,0,-100]}, {perspective:200, easing:'easingCubicOut', yoyo:true, repeat: 1, duration:1500});

View file

@ -345,10 +345,10 @@
K.pp[p] = function(p,v){
if (!(p in K.dom)) {
K.dom[p] = function(w,p,v) {
w._el.style[p] = w._vS[p].value + (w._vE[p].value - w._vS[p].value) * v;
w._el.style[p] = w._vS[p] + (w._vE[p] - w._vS[p]) * v;
}
}
return K.pp.unl(p,v);
return parseFloat(v);
}
}
K.prS[p] = function(el,p,v){

View file

@ -307,7 +307,7 @@
r2d.z = { value: K.truD(v,p).v, unit: (K.truD(v,p).u||'deg') };
return r2d;
} else if (p === 'scale') {
return { value: K.truD(v,p).v };
return { value: parseFloat(v) }; // this must be parseFloat(v)
}
};
K.pp.unl = function(p,v){ // scroll | opacity | unitless
@ -329,7 +329,7 @@
}
}
}
return { value: K.truD(v).v };
return { value: parseFloat(v) };
}
K.pp.box = function(p,v){
if (!(p in K.dom)) {

File diff suppressed because one or more lines are too long

2
dist/kute.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -345,10 +345,10 @@
K.pp[p] = function(p,v){
if (!(p in K.dom)) {
K.dom[p] = function(w,p,v) {
w._el.style[p] = w._vS[p].value + (w._vE[p].value - w._vS[p].value) * v;
w._el.style[p] = w._vS[p] + (w._vE[p] - w._vS[p]) * v;
}
}
return K.pp.unl(p,v);
return parseFloat(v);
}
}
K.prS[p] = function(el,p,v){

View file

@ -307,7 +307,7 @@
r2d.z = { value: K.truD(v,p).v, unit: (K.truD(v,p).u||'deg') };
return r2d;
} else if (p === 'scale') {
return { value: K.truD(v,p).v };
return { value: parseFloat(v) }; // this must be parseFloat(v)
}
};
K.pp.unl = function(p,v){ // scroll | opacity | unitless
@ -329,7 +329,7 @@
}
}
}
return { value: K.truD(v).v };
return { value: parseFloat(v) };
}
K.pp.box = function(p,v){
if (!(p in K.dom)) {