<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script> <style> .parent { width: 500px; position: relative; border: 1px solid #333; height: 500px; } .center { position: absolute; border: 1px solid #ff2d51; width: 100px; height: 100px; top: 50%; left: 50%; transform: translate(-50%, -50%); } .child { width: 50px; height: 50px; position: absolute; } .one { left: 10px; top: 10px; background-color: red; } .two { top: 10px; right: 10px; background-color: yellow; } .three { left: 10px; bottom: 10px; background-color: green; } .four { bottom: 10px; right: 10px; background-color: blue; } .child:not(:nth-child(1)){ display: none; } </style></head><body> <div class="parent"> <div class="content"> <div class="child one"> </div> <div class="child two"> </div> <div class="child three"> </div> <div class="child four"> </div> </div> </div> <script> let index = 0; let $divs = $(".content .child:not(:nth-child(1))"); let len = $divs.length; $(".one").mouseover(function(){ show(len); }) function show(len) { setTimeout(() => { if (index < len) { $divs.eq(index).fadeIn(); index++; show(len); } }, 1000); } </script></body></html>