Skip to content

Instantly share code, notes, and snippets.

@CodeMyUI
Created May 1, 2017 01:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeMyUI/737b204d4012015bcb22d3b38fc30dd5 to your computer and use it in GitHub Desktop.
Save CodeMyUI/737b204d4012015bcb22d3b38fc30dd5 to your computer and use it in GitHub Desktop.
CSS Text 3d effect
<div>
<span>DUO</span>
</div>
$ease: cubic-bezier(.47,.01,0,1.01);
div {
position: fixed;
top:0;right:0;bottom:0;left:0;
background: url(https://images.unsplash.com/photo-1418226970361-9f1f7227d638?dpr=1&auto=format&fit=crop&w=1500&h=1000&q=80&cs=tinysrgb&crop=) no-repeat center center / cover;
}
span {
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(calc(-50% - 12px),calc(-50% + 12px),0);
mix-blend-mode: screen;
font-family: 'Montserrat', sans-serif;
font-size: 12em;
letter-spacing: 0.2em;
text-transform: uppercase;
text-shadow: 0px 0px white,
0px 0px white,
0px 0px white,
0px 0px white,
0px 0px white,
0px 0px white,
0px 0px white,
0px 0px white,
0px 0px white,
0px 0px white,
0px 0px white;
opacity:0;
animation: revolve 2s $ease forwards 0.5s;
@keyframes revolve {
to{
opacity:1;
transform: translate3d(-50%,-50%,0);
text-shadow: -2px 1px white,
-3px 2px white,
-4px 3px white,
-5px 4px white,
-6px 5px white,
-7px 6px white,
-8px 7px white,
-9px 8px white,
-10px 9px white,
-11px 10px white,
-12px 11px white;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment