JSFiddle - React, Tailwind, and code Playground
by Qwerty_Wasd
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/MorphSVGPlugin.min.js?r=182"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<div class="container">
<div class="flipper" id="target">
<div class="front">
<a href="#target" class="home button">обо мне</a>
<div class="share-block">
<a href=""><i class="fa fa-facebook"></i></a>
<a href=""><i class="fa fa-instagram"></i></a>
<a href=""><i class="fa fa-twitter"></i></a>
<a href=""><i class="fa fa-youtube"></i></a>
<a href=""><i class="fa fa-linkedin"></i></a>
</div>
<h1>Qwerty Wasd</h1>
</div>
<div class="back">
<a href="#close" class="close button"><i class="fa fa-home"></i></a>
<div class="inner">
<h2>обо мне</h2>
<p>Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</p>
</div>
</div>
</div>
</div>
CSS
@import 'https://fonts.googleapis.com/css?family=Open+Sans:400,700|Playfair+Display:400,700';
*{box-sizing:border-box}
body {
margin: 0;
background: url(https://html5book.ru/wp-content/uploads/2017/04/photo-morning-rose.jpg);
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: cover;
height: 100vh;
padding: 20px;
font-size: 16px;
font-family: 'Open Sans', sans-serif;
overflow:hidden
}
h1 {
color: white;
font-size: 4em;
font-family: 'Playfair Display', serif;
margin: 0;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
white-space: nowrap;
letter-spacing: 5px;
}
h2 {
font-size: 3em;
font-family: 'Playfair Display', serif;
line-height: 1;
}
.share-block {
float: right;
padding-right: 15px;
line-height: 50px;
}
.share-block a {
color: #999;
display: inline-block;
margin-right: 7px;
transition: .4s linear;
}
.share-block a:hover {
color: white;
}
.container {
border: 10px solid rgba(255,255,255,0.2);
width: 100%;
height: 100%;
-webkit-perspective: 1200;
perspective: 1200;
-moz-transform: perspective(1200px);
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
position: relative;
}
.button {
text-decoration: none;
width: 120px;
height: 50px;
position: relative;
display: inline-block;
top: 0;
left: 0;
z-index: 3;
line-height: 50px;
padding-left: 30px;
transition: .4s linear;
}
.button:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-top: 20px solid #CE1D5A;
border-right: 20px solid transparent;
}
.button:after {
content: "";
position: absolute;
top: 8px;
left: 8px;
width: 0;
height: 0;
border-top: 20px solid white;
border-right: 20px solid transparent;
}
.home:hover, .close:hover {
color: white;
}
.home, .close {
color: #999;
font-size: 20px;
}
.flipper {
position: relative;
width:...