Pure CSS3 transforms 3D text turn flip 3D open effect

Source: Internet
Author: User

For more information, please click here.

Online Preview Download Now

in this tutorial, you will create an interesting 3D open effect based on the one created by CSS3. The purpose of the tutorial is to show how we can bring some life to use CSS3 .


HTML:

<ul class= "Grid",
<li class= "Ot-letter-left" ><span data-letter= "C" >C< /span></li>
<li class= "ot-letter-top" ><span data-letter= "J" >J</span></li>
<li class= "ot-letter-right" ><span data-letter= "8" >8</SPAN></LI>
<li class= " Ot-letter-bottom "><span data-letter=" A ">A</SPAN></LI>
</ul>

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 here.

Pure CSS3 transforms 3D text turn flip 3D open effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.