htmlcsscss-animationsuser-inputkeyframe

How can I fix the width and height of my animated background blocks, so that my sudoku square inputs and button still work?


Link to the project on jsfiddle: https://jsfiddle.net/CGlinka95/fe3a0Lvu/7/

HTML:

<ul class="blocks">
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</ul>

CSS: I have narrowed down the issue to 4 of the properties that I have applied to the blocks class.

.blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.blocks {
    position: absolute;
    overflow: hidden;
}

the inputs function as normal again, but the animated blocks in the background disappear.

This is a personal project of mine that I've been working on for quite some time now, and this is the first real roadblock that I've hit that I can't seem to figure out on my own. Any help, guidance, or advice would be greatly appreciated. This is all just plain HTML and CSS, with no react or CSS libraries. I have JavaScript and a backend for the functionality of the application itself, but they are not relevant to the issue, as far as I know; it should purely just be a layout problem.

Furthermore, if there are any issues with the link or you require any additional information, let me know, and I will provide them asap.

What I've tried so far:

Thanks again!


Solution

  • Within .blocks add z-index: -1; and it should be able to fix your problem, as your problem is just that the ul element with the class of blocks is for some reason moving in front of the inputs, so I believe that changing the z-index to be under the inputs will work, as setting the z-index to -1 would set ul element to the under the inputs.

    I also did test it if it would work with your code and my test results were that it worked.