开发者

Jquery mobile transitions

开发者 https://www.devze.com 2023-02-13 00:39 出处:网络
first time using jquery mobile version. why does this not work? <div dat开发者_高级运维a-role=\"collapsible\" data-collapsed=\"true\" data-transition=\"Fade\">

first time using jquery mobile version.

why does this not work?

<div dat开发者_高级运维a-role="collapsible" data-collapsed="true" data-transition="Fade">

I want to onClick have the content fading in, but it does not happen, it just appears roughly and no smooth at all.

Thanks

Pluda


Transitions are made with new advanced features, not with javascript. Implementing them with javascrtipt would be heavy and cumbersome. That's why they don't work in most old browsers yet. (AFAIK most browsers support them in new releases)


Also, the transition name should be lower case:

data-transition="fade"

0

精彩评论

暂无评论...
验证码 换一张
取 消