CSS Learning Notes Chapter I
Try to make a nixos boot animation. (log scroll on screen.) The repo link: https://github.com/ocfox/booti . This site has none imported js or css library. First need make a animation let text display line by line. So I tried to set a delay for every line, when open page hide (don’t display) every paragraph in css. p { display: none; /* Initially hide all paragraphs */ margin: 1px 0 0 1px; } Then set a delay increase by degrees for every single line with js. Use EventListener get every paragraph element, and set 500ms * (current lines) delay make it display none -> block. So them will display right. ...