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 8956713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:50:40+00:00 2026-06-15T14:50:40+00:00

There are four images , and each images has to be border effect(css) by

  • 0

There are four images , and each images has to be border effect(css) by using time delay sequentially. For example:

O O
O O

after 5seconds

O O
O O

after 5seconds

O O
O O

Does anyone know how to make it ?

  • 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-06-15T14:50:41+00:00Added an answer on June 15, 2026 at 2:50 pm

    If you must use CSS then, given the HTML below, this is possible (though a little clunky):

    <div id="timer">
        <div class="interval"></div>
        <div class="interval"></div>
        <div class="interval"></div>
        <div class="interval"></div>
    </div>​
    

    And the CSS:

    @-moz-keyframes loading {
        0%, 24% {
            border-color: #f00;
        }
        25%, 100% {
            border-color: #000;
        }
    }
    
    @-ms-keyframes loading {
        0%, 24% {
            border-color: #f00;
        }
        25%, 100% {
            border-color: #000;
        }
    }
    
    @-o-keyframes loading {
        0%, 24% {
            border-color: #f00;
        }
        25%, 100% {
            border-color: #000;
        }
    }
    
    @-webkit-keyframes loading {
        0%, 24% {
            border-color: #f00;
        }
        25%, 100% {
            border-color: #000;
        }
    }
    
    @keyframes loading {
        0%, 24% { /* stops the gradual fading-out */
            border-color: #f00;
        }
        25%, 100% {
            border-color: #000;
        }
    }
    
    #timer .interval {
        display: inline-block;
        width: 1em;
        height: 1em;
        border: 1px solid #000;
        border-radius: 50%;
        -moz-animation: loading 20s linear infinite;
        -ms-animation: loading 20s linear infinite;
        -o-animation: loading 20s linear infinite;
        -webkit-animation: loading 20s linear infinite;
        animation: loading 20s linear infinite;
    }
    
    #timer .interval:nth-child(1) {
        -moz-animation-delay: 0;
        -ms-animation-delay: 0;
        -o-animation-delay: 0;
        -webkit-animation-delay: 0;
        animation-delay: 0;
    }
    
    #timer .interval:nth-child(2) {
        -moz-animation-delay: 5s;
        -ms-animation-delay: 5s;
        -o-animation-delay: 5s;
        -webkit-animation-delay: 5s;
        animation-delay: 5s;
    }
    
    #timer .interval:nth-child(3) {
        -moz-animation-delay: 10s;
        -ms-animation-delay: 10s;
        -o-animation-delay: 10s;
        -webkit-animation-delay: 10s;
        animation-delay: 10s;
    }
    
    #timer .interval:nth-child(4) {
        -moz-animation-delay: 15s;
        -ms-animation-delay: 15s;
        -o-animation-delay: 15s;
        -webkit-animation-delay: 15s;
        animation-delay: 15s;
    }
    ​
    

    JS Fiddle demo.

    Or, using CSS transitions but using JavaScript, in this case jQuery (for simplicity), to trigger the next step, rather than manually using, and setting, the animation-delay with CSS:

    function transNext(currentEl, transitionClass) {
        if (!currentEl) {
            return false;
        }
        else {
            transitionClass = transitionClass || 'interval';
            var cur = $(currentEl),
                nxt = cur.next().length ? cur.next() : cur.prevAll(':last');
            cur.removeClass(transitionClass);
            nxt.addClass(transitionClass);
    
        }
    }
    
    $('#timer').on('mozAnimationEnd msAnimationEnd oAnimationEnd webkitAnimationEnd animationEnd', function(e) {
        transNext(e.target, 'interval');
    });​
    

    And the modified CSS:

    @-moz-keyframes loading {
        0%, 99% {
            border-color: #f00;
        }
        100% {
            border-color: #000;
        }
    }
    
    @-ms-keyframes loading {
        0%, 99% {
            border-color: #f00;
        }
        100% {
            border-color: #000;
        }
    }
    
    @-o-keyframes loading {
        0%, 99% {
            border-color: #f00;
        }
        100% {
            border-color: #000;
        }
    }
    
    @-webkit-keyframes loading {
        0%, 99% {
            border-color: #f00;
        }
        100% {
            border-color: #000;
        }
    }
    
    @keyframes loading {
        0%, 99% { /* stops the gradual fading-out */
            border-color: #f00;
        }
        100% {
            border-color: #000;
        }
    }
    
    #timer div {
        display: inline-block;
        width: 1em;
        height: 1em;
        border: 1px solid #000;
        border-radius: 50%;
    }
    
    #timer .interval {
        -moz-animation: loading 5s linear 1;
        -ms-animation: loading 5s linear 1;
        -o-animation: loading 5s linear 1;
        -webkit-animation: loading 5s linear 1;
        animation: loading 5s linear 1;
    }
    ​    ​
    

    JS Fiddle demo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to build a navbav that has four images, with a text link
I am using an image sprite that consisting of four sub-images: four corners for
In my application - there are four buttons named as follows: Top - left
According to this there are four size screens, small, normal, large and xlarge. So
I have a Database named CarsType.accdb there are four fields in the data base
I've got collection of geo objects in database: There are four Tables: Countries Regions
Yes, I know there are four Memory windows, but I much prefer the display
I have made an html wizzard for making order. There are four steps, in
In my application four TextArea is there and I want to enter only four
Hey there. I'm trying to write a small program that will read the four

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.