CSS animations, best practice?

Hi Guys, A lot of clients want animations in their applications. This can be anything from a menu to accordion elements. Currently we use html snippets with a javascript: $('.clickthis').click(function() { $(".targetthis").toggleClass("toggleclass"); }); Is there a beter way to do this? Is there any news on when mendix will apply conditional classes? (solving this work around) How often do you guys run into this?
1 answers

I am also interested in a solution. For example, I’d like to add a class to an input field if valitaion fails to make it shake or bounce. I Haven’t found a solution for it. Any Ideas are welcome.