A Pen by Danny Francisco on CodePen.
Created
December 31, 2021 08:29
-
-
Save dcfrancisco/a7e8d4e241b425ffcd99ce17692ce1b4 to your computer and use it in GitHub Desktop.
dyVdraj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="Items-381" class="sampleModule"> | |
| <ul class="tm_tl"> | |
| <li class="tm_t"> | |
| <span>SFASASASDFASDF</span> | |
| <span class="tm_td">sdsdgsdfgsdg</span> | |
| </li> | |
| <li class="tm_t"> | |
| <span>FASDFASDFASDFASDF</span> | |
| <span class="tm_td">jhhgfggjkjjjjjjjjj</span> | |
| </li> | |
| <li class="tm_t"> | |
| <span>ASDFASDFASDFASF</span> | |
| <span class="tm_td">asasdfsadf</span> | |
| </li> | |
| <li class="tm_t"> | |
| <span>ASDASDASD</span> | |
| <span class="tm_td">yvfyfvyfvv</span> | |
| </li> | |
| </ul> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| margin: 0; | |
| padding: 0; | |
| background: rgb(0 148 255); | |
| font-family: sans-serif; | |
| } | |
| .sampleModule ul { | |
| position: relative; | |
| width: 800px; | |
| margin: 40px auto 0; | |
| padding: 5px; | |
| box-sizing: border-box; | |
| background: rgba(0, 0, 0, 0.1); | |
| box-shadow: inset 0 0 15px rbga(0, 0, 0, 0.2); | |
| border-radius: 5px; | |
| overflow: hidden; | |
| } | |
| .sampleModule ul li { | |
| display: flex; | |
| background: rgba(255, 255, 255, 0.1); | |
| padding: 10px 20px; | |
| color: #fff; | |
| margin: 5px 0; | |
| transition: 0.5s; | |
| } | |
| .sampleModule ul li:nth-child(1) { | |
| background: rgba(255, 255, 255, 0.6); | |
| } | |
| .sampleModule ul li:nth-child(2) { | |
| background: rgba(255, 255, 255, 0.4); | |
| } | |
| .sampleModule ul li span:nth-child(1) { | |
| width: 200px; | |
| } | |
| .sampleModule ul li span:nth-child(2) { | |
| width: 500px; | |
| text-align: left; | |
| } | |
| .sampleModule ul li:hover { | |
| transform: scale(1.06); | |
| background: rgb(0 148 255); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment