First in series of pens where I just want to make a library of useful tricks I have used for websites. In this one the key trick is multiline underline with any color I want. This is show using a random gradient so I could practice some more javascript.
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
| <p id="offscreen-text" class="offscreen-text"></p> | |
| <p id="text" class="text"></p> | |
| <svg id="svg"> | |
| </svg> | |
| <input type="text" class="input", id="input" /> |
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
| <!-- Page preloader --> | |
| <div id="hola"> | |
| <div id="preloader"> | |
| <span></span> | |
| <span></span> | |
| </div> | |
| </div> | |
| <!-- Start content --> | |
| <div class="page-wrap"> |
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
| <head> | |
| <title>Media panel</title> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="social"> | |
| <h2>Social Media</h2> | |
| <button class="icon-btn twitter"> |
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
| <main> | |
| <input type="text" class="search" /> | |
| <div class="line-1"></div> | |
| <div class="line-2"></div> | |
| </main> |
Sliding panels around to give greater emphasis to the active panel. Uses only CSS :hover states with transform/opacity transitions for maximum performance.
Responsively switches to a stacked layout on smaller screens, or by using the .panels--stacked class