A Pen by Ömür Yanıkoğlu on CodePen.
Created
August 2, 2022 15:53
-
-
Save jango-blockchained/9a48b43c74a327834dbba22c09941ef8 to your computer and use it in GitHub Desktop.
Under Construction
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="wrapper"> | |
| <h1 id="logo">LOGO</h1> | |
| <div id="typed-wrapper" class="cf"> | |
| <span id="typed"> | |
| <span class="sr-only">We serve very soon...</span> | |
| </div> | |
| </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
| // Custom | |
| $(function() { | |
| var $typed = $("#typed"); | |
| $typed.typed({ | |
| strings: [$typed.text()], | |
| typeSpeed: 50, | |
| startDelay: 1000 | |
| }); | |
| }); |
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
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/typed.js/1.1.1/typed.min.js"></script> |
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
| * { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| html, | |
| body { | |
| width: 100%; | |
| height: 100%; | |
| } | |
| body { | |
| background-color: #222; | |
| font-family: 'Open Sans', sans-serif; | |
| } | |
| #wrapper { | |
| display: inline-block; | |
| max-width: 300px; | |
| position: absolute; | |
| left: 50%; | |
| top: 50%; | |
| transform: translate(-50%, -50%); | |
| text-align: center; | |
| color: #fff; | |
| } | |
| #logo { | |
| display: block; | |
| margin: 0 auto 30px; | |
| font-size: 48px; | |
| } | |
| #typed-wrapper { | |
| font-size: 20px; | |
| color: #444; | |
| text-align: center; | |
| } | |
| .sr-only { | |
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| padding: 0; | |
| margin: -1px; | |
| overflow: hidden; | |
| clip: rect(0, 0, 0, 0); | |
| border: 0; | |
| } | |
| .cf:before, | |
| .cf:after { | |
| content: " "; | |
| display: table; | |
| } | |
| .cf:after { | |
| clear: both; | |
| } | |
| .typed-cursor { | |
| display: inline-block; | |
| margin-left: -8px; | |
| opacity: 1; | |
| -webkit-animation: blink 0.7s infinite; | |
| -moz-animation: blink 0.7s infinite; | |
| animation: blink 0.7s infinite; | |
| } | |
| @keyframes blink { | |
| 0% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0; | |
| } | |
| 100% { | |
| opacity: 1; | |
| } | |
| } | |
| @-webkit-keyframes blink { | |
| 0% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0; | |
| } | |
| 100% { | |
| opacity: 1; | |
| } | |
| } | |
| @-moz-keyframes blink { | |
| 0% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0; | |
| } | |
| 100% { | |
| opacity: 1; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment