Changing background on different parts of 3 x 3 grid

Changing background on different parts of 3 x 3 grid

I have a 3 x 3 grid - each part of the grid has a different background image. I would like to change 1 section of the grid background after say 5 seconds - fade in a new background. Three seconds later I would like a different random part of the grid to change its background.

The following html, css and jQuery changes the background image on each container but to the same background - not what I'm trying to achieve - any help would be greatly appreciated.

Here is the html:
  1. <body>
  2. <div class="grid">
  3. <div class = "row1">
  4.         <div class = "container column1"></div>
  5.         <div class = "container column2"></div>
  6.         <div class = "container column3"></div>
  7.     </div><!--end of row -->
  8.     <div class = "row2">
  9.         <div class = "container column1"></div>
  10.         <div class = "container column2"></div>
  11.         <div class = "container column3"></div>
  12.     </div><!--end of row -->
  13.     <div class = "row3">
  14.         <div class = "container column1"></div>
  15.         <div class = "container column2"></div>
  16.         <div class = "container column3"></div>
  17.     </div><!--end of row -->
  18. </div>


  19. </body>
This the css so far - I have only put a background on the top left so far
  1. * {
  2. margin: 0px;
  3. padding: 0px;
  4. box-sizing:border-box;
  5. }
  6. .grid {
  7. margin-left: auto;
  8. margin-right: auto;
  9. width: 900px;
  10. height: 300px;
  11. background-color:#22F501;
  12. }
  13. .container {
  14. float: left;
  15. width: 300px;
  16. height: 300px;
  17. background-color: #E4F903;
  18. border-top: 20px solid #B6B6B6;
  19. border-right: 20px solid #B6B6B6;
  20. border-bottom: 20px solid #B6B6B6;
  21. }
  22. .container:first-child {
  23. border-left: 20px solid #B6B6B6;
  24. }
  25. .row1 .column1 {
  26. background-image: url(images/maatariki_main.jpeg);
  27. background-size: 280px 280px;
  28.     background-repeat: no-repeat;
  29. }
This jQuery will change the background but it will change it for all of the containers to the same background -p not the desired result.

  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  2. <script type="text/javascript"> 
  3. $(document).ready(function(){
  4. $(function () {
  5.     var container = $('.container');
  6.     var backgrounds = [
  7.       'url(http://static.jsbin.com/images/jsbin_static.png)', 
  8.       'url(http://static.jsbin.com/images/popout.png)'];
  9.     var current = 0;

  10.     function nextBackground() {
  11.         container.css(
  12.             'background',
  13.         backgrounds[current = ++current % backgrounds.length]);

  14.         setTimeout(nextBackground, 5000);
  15.     }
  16.     setTimeout(nextBackground, 5000);
  17.     body.css('background', backgrounds[0]);
  18. });
  19. });