JavaScript animation improvements to portlet templates

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5612 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-05-03 16:19:30 +00:00
parent 5fbcb9ead6
commit 5c0ece107f
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ var MyWebForms = {
{
var projects = $$('#formsPanel .webProjectRow');
var frms = $$('#formsPanel .webProjectForms');
var fxForm = new Fx.Elements(frms, {wait: false, duration: 300, transition: Fx.Transitions.linear});
var fxForm = new Fx.Elements(frms, {wait: false, duration: 300, transition: Fx.Transitions.sineInOut});
projects.each(function(project, i)
{
@@ -22,7 +22,7 @@ var MyWebForms = {
// animated elements defaults
frm.maxHeight = frm.getStyle('height').toInt();
frm.defHeight = 1;
frm.setStyle('height', 0);
frm.setStyle('height', frm.defHeight);
frm.setStyle('opacity', 0);
// register 'mouseenter' (subclassed mouseover) event for each project

View File

@@ -15,8 +15,8 @@ var MyTasks = {
var infos = $$('#taskPanel .taskInfo');
var details = $$('#taskPanel .taskDetail');
var resources = $$('#taskPanel .taskResources');
var fxInfo = new Fx.Elements(infos, {wait: false, duration: 300, transition: Fx.Transitions.linear});
var fxDetail = new Fx.Elements(details, {wait: false, duration: 300, transition: Fx.Transitions.linear,
var fxInfo = new Fx.Elements(infos, {wait: false, duration: 300, transition: Fx.Transitions.sineInOut});
var fxDetail = new Fx.Elements(details, {wait: false, duration: 300, transition: Fx.Transitions.sineInOut,
onComplete: function()
{
// event handler to ensure