What I am trying to do is to fade in validation summary slowly when errors found. I am using ASP.NET MVC 4 with unobtrusive jQuery validation.
Validation works well. When issues are found css class of the summary div
switches from validation-summary-valid
to validation-summary-errors
.
I don't want to hook into validation events, because I want to keep validation logic and look and feel separated. So my goal is to to detect that css class switch over and trigger some animation (fadeIn for instance). In this case the script responsible for animation will not be aware of validation, just of css classes.