
Originally Posted by
walzuu
Hi.
I tried using the -webkit-transitions described here:
http://www.developer.nokia.com/Resou...ansitions.html but I couldn't get it to work. I tried to look how it's used in Photo Album example and I can't find what I'm doing wrong here. I'm trying to create this effect where text disappears smoothly.
Here's my css:
#default
{
-webkit-transition-duration: 2s;
-webkit-transition-property: width;
-webkit-transition-timing-function: linear;
}
.size_a
{
width:100px;
}
.size_b
{
overflow:hidden;
width:0px;
}
And js:
function change(){
//switch #default's class to size_b
mwl.switchClass('#default','size_b','size_a');
}
Do you guys have any idea what I'm doing wrong?
Hi,
Calling change() will result into a round trip to proxy server. Try to attach it directly to some element so it will be executed on the device.
Code:
<div onclick="mwl.switchClass('#default','size_a','size_b');">Change</div>
<div onclick="mwl.switchClass('#default','size_b','size_a');">Change back</div>
Br,
Ilkka