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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:14:17+00:00 2026-05-21T18:14:17+00:00

I have an area on a white html page that I would like to

  • 0

I have an area on a white html page that I would like to divide into smaller rectangular units each with a black background and render one black unit at a time on page load, horizontally in rows, until the area is completely black. This is aesthetic only, there is no functionality or other content within the units.

It can use Javascript, JQuery, CSS and or PHP if necessary. The simplest idea I could think of was a CSS table in which all cells have a black background and a CSS attribute visibility: hidden then changing each cell one at a time to visibility: visible with a setTimeOut?

The other approach I could think of is nesting a black background CSS div, my black unit, within another div set to the final area size and cloning the nested div with setTimeOut until the parent div is completely full. I’m not sure which solution is lighter if either.

Where I’m particularly stuck is how to reference each cell (or div) one at a time, and whether I have to give each black table cell or div unit a manual id reference, which is less flexible, or whether it can be done dynamically.

  • 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-21T18:14:18+00:00Added an answer on May 21, 2026 at 6:14 pm

    You could make <table> (I made a grid, but single-row grids look nice too):

    <table>
        <tr><td>The</td></tr>
        <tr><td>Monkeys</td></tr>
        <tr><td>Are</td></tr>
        <tr><td>Loading</td></tr>
        <tr><td>The</td></tr>
        <tr><td>HTML</td></tr>
    </table>
    

    And iterate via JS:

    animateNext($('table tr td'));
    
    function animateNext(items) {
        items.eq(0).animate({opacity: 1}, 300, function() {
            animateNext(items.slice(1));
        });
    }
    

    It supports an arbitrary number of cells. Here’s a demo: http://jsfiddle.net/vmSNs/49/

    I added some CSS styles to make it overlay, and make the items take up identical heights to fill up the screen. The demo shows it all.

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

Sidebar

Related Questions

I have a text area on which I would like to listen to change
I have a web page that has an HTML table generated by an ASP.NET
I have a text area page which is launched from the previous page: $message
If I have a development area that I deleted files from a certain folder/directory,
I have an ambitious requirement for an asp.net 2.0 web page that contains a
Hi I have a div box that opens on my page and then loads
I have a CSS layout that simulates a fixed-frame page, with a header and
I have a page with a 100% width/height flash movie that is overlayed with
I have the following form in my edit.html.erb page <%= form_for(@device) do |f| %>
I have an HTML template and CSS that renders a textarea field, however when

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.