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 });
Comments
Post a Comment