Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-02-2012, 12:13 PM   PM User | #1
dados
New to the CF scene

 
Join Date: Mar 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
dados can only hope to improve
Accordion content with active selector

Hi,

I need accordian content plugin, and I found a lot of them on net.. But I need some functionality and maybe somebody can help me... Please see this small video..

http://screencast.com/t/GoWe0sRm

And pay attention to the small symbol "plus" who is selector, when click on accordian selector you will see how as it rotates and when is active he is now "X" symbol... Did somebody know how I can do this.. Or maybe know accordian plugin with this option?

Thanks!
dados is offline   Reply With Quote
Old 05-03-2012, 12:03 AM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,613
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
I don’t think there is any plugin for that (for which framework, actually?) but it’s not hard to write that from scratch with a little knowledge of JS. Since rotation of elements isn’t very well supported in many browsers yet it’s probably best to do that with sprites and “tweening” – i. e. create an image for each stage of the rotation and combine them into one sprite sheet which you apply as background to the element in question; create as many “frames” as you have rotation stages in the image by changing class names of the element sequentially using setInterval().

Edit: Just after finishing my post it occurred to me to search for “javascript tweening” and lo and behold, there are already JS frameworks/plugins for motion tweens.
__________________
Don’t click this link!

Last edited by VIPStephan; 05-03-2012 at 12:08 AM..
VIPStephan is offline   Reply With Quote
Old 05-03-2012, 03:21 PM   PM User | #3
dados
New to the CF scene

 
Join Date: Mar 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
dados can only hope to improve
I found something like this http://code.google.com/p/jqueryrotate/
dados is offline   Reply With Quote
Reply

Bookmarks

Tags
accordian content

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:20 AM.


Advertisement
Log in to turn off these ads.