A Pen by Thomas Sauvajon on CodePen.
Created
October 3, 2017 12:43
-
-
Save tsauvajon/40911ab13910d0920ca2597dc852696d to your computer and use it in GitHub Desktop.
Gerflor Animated loading logo
Thomas Sauvajon
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 { | |
background-color: #47f188; | |
} | |
.loading-overlay { | |
z-index: 9999; | |
/* display: block; */ | |
/* position: absolute; | |
top: 50%; | |
left: 50%; */ | |
height: 100px; | |
width: 300px; | |
margin: auto; | |
position: fixed; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
} | |
.loading-overlay svg { | |
height: 200px; | |
left: 50%; | |
margin-left: -150px; | |
margin-top: -100px; | |
position: absolute; | |
top: 50%; | |
width: 300px; | |
} | |
.logo-text, .logo-copyright { | |
animation-delay: .6s; | |
animation-duration: 2s; | |
animation-fill-mode: both; | |
/* animation-iteration-count: infinite; */ | |
/* animation-timing-function: ease;*/ | |
animation-timing-function: cubic-bezier(0.25, 0.8, 0.5, 1); | |
} | |
.logo-text { | |
stroke-dasharray: 1750; | |
stroke-dashoffset: 1750; | |
animation-direction: reverse; | |
animation-name: drawLogoWhite; | |
} | |
.logo-copyright { | |
stroke-dasharray: 750; | |
stroke-dashoffset: 750; | |
animation-name: slideInDown; | |
animation-delay: 2.6s; | |
fill: #474c5d; | |
} | |
/* Joué en reverse ! */ | |
@keyframes drawLogoWhite { | |
0% { | |
stroke: transparent; | |
fill: #474c5d; | |
} | |
20% { | |
stroke-dashoffset: 0; | |
stroke: #474c5d; | |
} | |
100% { | |
stroke-dashoffset: 1750; | |
stroke: #474c5d; | |
fill: transparent; | |
} | |
} | |
@keyframes slideInDown { | |
from { | |
/* transform: translate3d(0, -50%, 0); */ | |
opacity: 0; | |
} | |
to { | |
/* transform: translate3d(0, 0, 0); */ | |
opacity: 1; | |
} | |
} | |
@keyframes drawLogoblueAndWhite { | |
0% { | |
stroke-dashoffset: 0; | |
fill: #fff; | |
} | |
50% { | |
stroke-dashoffset: 200px; | |
fill: #002052; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment