Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6372853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:17:23+00:00 2026-05-25T01:17:23+00:00

I use the function Pulsate ( http://docs.jquery.com/UI/Effects/Pulsate ). With the argument ‘times’ I can

  • 0

I use the function Pulsate (http://docs.jquery.com/UI/Effects/Pulsate). With the argument ‘times’ I can set the times the element pulsates. The Default value is 5, but how can I set it that the element will pulsate infinitely.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:17:24+00:00Added an answer on May 25, 2026 at 1:17 am

    I recommend you don’t use JQueryUI at all for this – it’s a very simple animation and can be easily done without loading UI:

    // DOM ready
    $(function(){
        // Self-executing recursive animation
        (function pulse(){
            $('#my_div').delay(200).fadeOut('slow').delay(50).fadeIn('slow',pulse);
        })();
    });
    

    Working demo: http://jsfiddle.net/AlienWebguy/bSWMC/

    As you can see, it can be tweaked quite easily by changing the speed of the fades and the duration of the delays.

    The original JQueryUI pulsate() function uses a for loop for times so you can’t achieve your result using this plugin without changing the logic of the plugin:

    $.effects.pulsate = function(o) {
        return this.queue(function() {
            var elem = $(this),
                mode = $.effects.setMode(elem, o.options.mode || 'show');
                times = ((o.options.times || 5) * 2) - 1;
                duration = o.duration ? o.duration / 2 : $.fx.speeds._default / 2,
                isVisible = elem.is(':visible'),
                animateTo = 0;
    
            if (!isVisible) {
                elem.css('opacity', 0).show();
                animateTo = 1;
            }
    
            if ((mode == 'hide' && isVisible) || (mode == 'show' && !isVisible)) {
                times--;
            }
    
            for (var i = 0; i < times; i++) {
                elem.animate({ opacity: animateTo }, duration, o.options.easing);
                animateTo = (animateTo + 1) % 2;
            }
    
            elem.animate({ opacity: animateTo }, duration, o.options.easing, function() {
                if (animateTo == 0) {
                    elem.hide();
                }
                (o.callback && o.callback.apply(this, arguments));
            });
    
            elem
                .queue('fx', function() { elem.dequeue(); })
                .dequeue();
        });
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my function http://www.ideone.com/slpPe If i don't use function preg_match_all({http://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}[^\s\\\\'\<&]*}ix, $html, $marches); $download
I need to use a function inside of another function, how can I do
How can i use opendir function to read the directory list of a remote
I am getting this error: Fatal error: Can't use function return value in write
As I know that in C, we can use function pointer and this is
this is my program... i need help how i can use function CalkaNadmiar for
I'm trying to figure out why this code $(document).ready(function() { $(.image2_template).effect( pulsate, {times:5}, 3000
i insert in database values (array) with use function serialize() , how can echo
I got the error Can't use function return value in write context when trying
In SQL Server, you can apply the use function to point a query to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.