angularjs - Fade In / FadeOut angular js -
I'm very new to AngularJS and would like to know how to do this:
< Code $ (". -change-agency-clicker"). ("Click", function (e) {e.preventDefault (); $ (".form"). FadeOut (function () {$ (". Agency-change-form"). FadeIn (); $ ( "# AgentForm") Show ();}}}}};So when a user clicks on a button, it is fadeout in a panel and fade in the second panel.
Just follow these steps:
.change-agency-clicker
is clicked (), toggle the value of one- if this variable is
true
, then hide () element.form . - If this variable
true
, show elements.
and#agentForm
.- Animate all things with CSS infections (), and forget that
transition delay
if necessary.Thoughts, of course, "declarative" and "mandatory"!
Comments
Post a Comment