You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When lots of profiles, and panel has to grow in height downwards so it can show all profiles/buttons, whitespace is shown.
This is due to the animation function of the menu AND the panel height growth starting at time 0. What happens is when the menu is expanding and reaches the top, so now menu height == panel height, THEN I should start the the panel animation to grow down.
But because I use ease transition function I have to split the bezier curve of the animation. I need to calculate from this split function the delay time, to when to start the panel height growth, this should pick up with the split bezier transition function.
Do reverse of the split bezier functions on collapse.
//////////////////START FROM ISCRIPTDESIGNvarsplitBezier=function(array,perc){array.unshift({x:0,y:0});varcoll=[];while(array.length>0){for(vari=0;i<array.length-1;i++){coll.unshift(array[i]);array[i]=interpolate(array[i],array[i+1],perc);}coll.unshift(array.pop());}return{b1: [{x:coll[5].x,y:coll[5].y},{x:coll[2].x,y:coll[2].y},{x:coll[0].x,y:coll[0].y}],b2: [{x:coll[1].x-coll[0].x,y:coll[1].y-coll[0].y},{x:coll[3].x-coll[0].x,y:coll[3].y-coll[0].y},{x:coll[6].x-coll[0].x,y:coll[6].y-coll[0].y}]};}varinterpolate=function(p0,p1,percent){if(typeofpercent==='undefined')percent=0.5;return{x: p0.x+(p1.x-p0.x)*percent,y: p0.y+(p1.y-p0.y)*percent};}//////////////////END FROM ISCRIPTDESIGNvarcoord=function(x,y){if(!x)varx=0;if(!y)vary=0;return{x: x,y: y};}//var easeInOut = [new coord(.44,.05), new coord(.55,.95), new coord(1,1)];vareaseInOut=[newcoordhat(.88,.1),newcoord(1.1,1.9),newcoord(2,2)];varsplit50percent=splitBezier(easeInOut.slice(),.5);alert(split50percent.toSource())
The text was updated successfully, but these errors were encountered:
### bootstrap.js
* makes the open animation have no whitespace, address issue #10 (im a
bit iffy on the animation speed, I need to test without any
console.log'ing to see if animation is smooth)
###### Summary: Addresses issue #10
### bootstrap.js
* Gives the collapse the split bezier to avoid white space
* It needs more work, as animation on main menu SEEMS not perfect (seems
more imperfect on collapse), but will do later, remember to gauge this
once all `console` messages are removed as `console` logging definitely
slows down stuff a lot
When lots of profiles, and panel has to grow in height downwards so it can show all profiles/buttons, whitespace is shown.
This is due to the animation function of the menu AND the panel height growth starting at time 0. What happens is when the menu is expanding and reaches the top, so now menu height == panel height, THEN I should start the the panel animation to grow down.
But because I use ease transition function I have to split the bezier curve of the animation. I need to calculate from this split function the delay time, to when to start the panel height growth, this should pick up with the split bezier transition function.
Do reverse of the split bezier functions on collapse.
The text was updated successfully, but these errors were encountered: