html - Animations when adding new class -


my web application has 2 different modes: visual , interaction. app in visual mode. when user goes interactive mode add class "interactive" in container div. when mode change happens , add class, new divs show hidden before.

i'm using rules of kind in css:

.interactive #somedivthatwashidden{     height: 100%;     width: 20%; } 

my question is, when transition happens. i.e., when $(".container").addclass("interactive"); want these new divs show animations ( sliding in sides ).

you can use jqueryui animations.

check in here..

http://jqueryui.com/toggleclass/

you can use jquery animate function,

something

$(".container").addclass("interactive").animate({ //do things }); 

http://api.jquery.com/animate/


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -