blast
01-09-2008, 06:36 PM
I have a function to show a div based on the image that is clicked...here is the JS:
function showSection(strList,id)
{
// <![CDATA[
var id;
var aList = strList.split(",");
for (i = 0; i < aList.length; i++)
{
if (aList[i] == id)
{
Effect.Appear($(aList[i]),{ duration: 1.5 });
}
else
{
Effect.Fade($(aList[i]),{ duration: 0 });
}
}
// ]]>
}
I have also tried the effects for (Shrink, Grow) but all of these dont look smooth to me.
Does anyone know if there is a way to make the animation much smoother?
function showSection(strList,id)
{
// <![CDATA[
var id;
var aList = strList.split(",");
for (i = 0; i < aList.length; i++)
{
if (aList[i] == id)
{
Effect.Appear($(aList[i]),{ duration: 1.5 });
}
else
{
Effect.Fade($(aList[i]),{ duration: 0 });
}
}
// ]]>
}
I have also tried the effects for (Shrink, Grow) but all of these dont look smooth to me.
Does anyone know if there is a way to make the animation much smoother?