How can I add moving effects to my controls in C#?

Window animation is a built-in feature for Windows. Here’s a class that uses it: using System; using System.ComponentModel; using System.Windows.Forms; using System.Runtime.InteropServices; public static class Util { public enum Effect { Roll, Slide, Center, Blend } public static void Animate(Control ctl, Effect effect, int msec, int angle) { int flags = effmap[(int)effect]; if (ctl.Visible) { … Read more

jQuery slide left and show

This feature is included as part of jquery ui http://docs.jquery.com/UI/Effects/Slide if you want to extend it with your own names you can use this. jQuery.fn.extend({ slideRightShow: function() { return this.each(function() { $(this).show(‘slide’, {direction: ‘right’}, 1000); }); }, slideLeftHide: function() { return this.each(function() { $(this).hide(‘slide’, {direction: ‘left’}, 1000); }); }, slideRightHide: function() { return this.each(function() { … Read more