Home > Web Front-end > HTML Tutorial > Pure css3 transforms 3D text flipping 3D open effect_html/css_WEB-ITnose

Pure css3 transforms 3D text flipping 3D open effect_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:46:35
Original
1018 people have browsed it

For details, please click

Preview online and download now

In this tutorial, we will create an interesting 3D open effect based on CSS3. The purpose of the tutorial is to show how we can bring some life to using CSS3.


html:


  • C


  • 8

  • A



css:

.grid li span {
display: inline-block;
font-weight: 900;
line-height: 1;
position: relative;
color: hsla(0, 0%, 0%, 0.6);
transform-style: preserve-3d;
perspective: 550px;
z-index: 1;
}
.grid li span:before,
.grid li span:after {
position: absolute;
content: attr(data-letter);
line-height: inherit;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
transition: all 0.3s;
}

.grid li span:before {
text-shadow: none;
color: hsla(0, 0%, 0%, 0.12);
}
.ot-letter-left span:before,
.ot-letter-left span:after {
transform-origin: 0 50%;
}
.ot-letter-left span:before {
transform: scale(1.08, 1) skew(0deg, 1deg);
}

.ot-letter-left span:after {
text-shadow:
-1px 0px 0px hsla(360 , 100%, 100%, 0.1),
3px 0px 1px hsla(0, 0%, 0%, 0.4);
transform: rotateY(-15deg);
}
.ot- letter-left:hover span:before {
transform: scale(0.85,1) skew(0deg,20deg);
}

.ot-letter-left:hover span:after {
transform: rotateY(-40deg);
}
.ot-letter-left {
background: #e74d3c;
}

.ot-letter-left span {
text-shadow:
1px 4px 6px #e74d3c,
0 0 0 hsla(0, 0%, 0%, 0.3),
1px 4px 6px #e74d3c;
}

.ot-letter-left span:after {
color: #e74d3c;
}

.ot-letter-left:hover span:after {
color: # ea6253;
}
.ot-letter-left {
background: #e74d3c;
}

.ot-letter-left span {
text-shadow:
1px 4px 6px #e74d3c,
0 0 0 hsla(0, 0%, 0%, 0.3),
1px 4px 6px #e74d3c;
}

.ot-letter -left span:after {
color: #e74d3c;
}

.ot-letter-left:hover span:after {
color: #ea6253;
}
.ot-letter-bottom span:before,
.ot-letter-bottom span:after {
transform-origin: 50% 0;
}

.ot-letter- bottom span:before {
transform: scale(1,1.05) skew(4deg,0deg);
}

.ot-letter-bottom span:after {
text-shadow:
0px -1px 0px hsla(360, 100%, 100%, 0.1),
0px 3px 1px hsla(0, 0%, 0%, 0.4);
transform: rotateX(15deg);
}

.ot-letter-bottom:hover span:before {
transform: translateY(-0.035em) scale(1,1.2) skew(10deg,0deg);
}

.ot-letter-bottom:hover span:after {
transform: translateY(0.045em) rotateX(40deg);
}

Online preview download now

Learning source: http://tympanus.net/Tutorials/AnimatedOpeningType/

For more htnl5/css3 content, please click

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template