| Page 1 of 1 | [ 2 posts ] |
|
Hi all
I tried to animate the switch between content panels of the tabview widget with the Plugin.WidgetAnim, but I dont understand how i should work nor if this is the way its supposed to work, and luck wasn't on ma side yet. Here is my code: Code: <div id="demo"> <ul> <li><a href="#foo">foo</a></li> <li><a href="#bar">bar</a></li> <li><a href="#baz">baz</a></li> </ul> <div> <div id="foo"> <p>foo content</p> </div> <div id="bar"> <p>bar content</p> </div> <div id="baz"> <p>baz content</p> </div> </div> </div> <script type="text/javascript"> YUI({ filter: 'raw' }).use("yui", "tabview", "plugin", "widget-anim", function(Y) { var tabview = new Y.TabView({ srcNode:'#demo', plugins:[ Y.Plugin.WidgetAnim ], }); tabview.render(); }); </script> ideas or hints? regards Daniel |
Juan Ignacio DopazoYUI Contributor
|
Y.Plugin.WidgetAnim seems to work when the widget changes its visibility. However, TabView shows/hides tab panels not by changing their visibility, but by changing their 'selected' status. I think if I were you I'd write my own plugin in this case (and maybe use Transition instead of Anim for making sliding panels).
|
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group