Skip to content

Instantly share code, notes, and snippets.

@drawby
Created March 11, 2020 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drawby/79d3eaba466b5e21b331f05175c959fb to your computer and use it in GitHub Desktop.
Save drawby/79d3eaba466b5e21b331f05175c959fb to your computer and use it in GitHub Desktop.
'Coming Soon' update

'Coming Soon' update

A simple 'coming soon' page which utilise 100% div height and some simple css animations.

A Pen by drawby on CodePen.

License.

<div class="container">
<div class="content">
<img class="animated fadeInUp stretchy" src="https://i.ibb.co/6B12cFf/cs-logo-01.png" class="animated fadeInDown" />
<h1 class="animated fadeInUp">Cali Stripe coming soon...</h1>
<h2 class="animated fadeInUp">For sales inquires <a href="mailto:info@redtapeventures.com?Subject=Hello" target="_top">Contact Us</a></h2>
</div>
</div>
.stretchy {width:80%;
max-width:500px;}
html, body {
height: 100%;
margin: 0;
}
body {
padding: 10px;;
background-color: #ffffff;
font-family: 'Helvetica Neue', Helvetica, Arial, san-serif;
}
h1, h2, h3, h4, h5, h6, p {
margin: 0;
color: #242D1C;
}
a{color:#808753;}
h1 {
font-size: 26px;
margin-top: 50px;
margin-bottom: 10px;
}
h2 {
font-weight:normal;
font-size: 12px;
margin-top:24px;
text-transform:uppercase;
letter-spacing:1px;
}
.container {
display: table;
height: 100%;
min-height: 100%;
position: relative;
width: 100%;
}
.content {
padding: 100px 30px 30px 30px;
background-color: #fff;
display: table-cell;
height: 100%;
overflow: hidden;
width: 100%;
text-align: center;
background-image: linear-gradient(45deg, #ee3831 26.32%, #ffffff 26.32%, #ffffff 50%, #ee3831 50%, #ee3831 76.32%, #ffffff 76.32%, #ffffff 100%);
background-size: 107.48px 107.48px;
}
*, *:before, *:after {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/*!
Animate.css - https://daneden.me/animate
Licensed under the MIT license
Copyright (c) 2013 Daniel Eden
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@-webkit-keyframes fadeInDown {
0% {
opacity: 0;
-webkit-transform: translateY(-20px);
transform: translateY(-20px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@keyframes fadeInDown {
0% {
opacity: 0;
-webkit-transform: translateY(-20px);
-ms-transform: translateY(-20px);
transform: translateY(-20px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
}
}
.fadeInDown {
-webkit-animation-name: fadeInDown;
animation-name: fadeInDown;
}
@-webkit-keyframes fadeInUp {
0% {
opacity: 0;
-webkit-transform: translateY(20px);
transform: translateY(20px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@keyframes fadeInUp {
0% {
opacity: 0;
-webkit-transform: translateY(20px);
-ms-transform: translateY(20px);
transform: translateY(20px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
}
}
.fadeInUp {
-webkit-animation-name: fadeInUp;
animation-name: fadeInUp;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment