Пример #1
0
        public static void BeginPulseAnimation(this IHTMLImage jsc)
        {
            jsc.style.Opacity = 0;

            jsc.InvokeOnComplete(
                delegate
            {
                jsc.FadeIn(500, 1000,
                           delegate
                {
                    new Timer(
                        t =>
                    {
                        jsc.style.Opacity = (Math.Cos(t.Counter * 0.1) + 1.0) * 0.5;
                    }
                        , 1, 1000 / 15);
                }
                           );
            }
                );
        }