Проект на чистом CSS

Разработка Проект на чистом CSS

Нет прав для скачивания
Проект на чистом CSS.
Пишем нашу разметку:
HTML:
<div class="main-container">
  <!--first elements-->
  <div class="x x-top">
    <div class="plus left plus-top-left"></div>
    <div class="plus right plus-top-right"></div>
  </div>
  <div class="video">
    <div class="colors">
      <div class="color1 color"></div><div class="color2 color"></div><div class="color3 color"></div><div class="color4 color"></div><div class="color5 color"></div>
    </div>
  </div>
  <div class="x x-bottom">
    <div class="plus left plus-bottom-left"></div>
    <div class="plus right plus-bottom-right"></div>
  </div>
  <!--second elements-->
  <div class="bg">PIXMY</div>
  <div class="arrow arrow-top">
    <div class="head"></div>
  </div>
  <div class="arrow arrow-bottom">
    <div class="head2"></div>
  </div>
  <div class="big">MY CODEPEN PROJECTS</div>
  <div class="plus plus-center plus1"></div>
  <div class="plus plus-center plus2"></div>
  <div class="plus plus-center plus3"></div>
  <div class="plus plus-center plus4"></div>
  <div class="center-square"></div>
  <div class="top-text first-text"><div class="this">THIS&nbsp;</div> <div class="is">IS&nbsp;</div> <div class="my">MY CODEPEN</div></div>
  <div class="bottom-text first-text"><div class="this">THIS&nbsp;</div> <div class="is">IS&nbsp;</div> <div class="my">MY CODEPEN</div></div>
  <!--third elements-->
  <div class="projects">
    <div class="row row-first"><a href="https://codepen.io/Pixmy/full/oGbWwG" target="_blank"><div class="project binary"></div></a><a href="https://codepen.io/Pixmy/full/YxMOoZ" target="_blank"><div class="project arcade"></div></a><a href="https://codepen.io/Pixmy/full/VyOGZZ" target="_blank"><div class="project building"></div></a><a href="https://codepen.io/Pixmy/full/BwVgVR" target="_blank"><div class="project ball"></div></a>
    </div>
    <div class="row row-second"><a href="https://codepen.io/Pixmy/full/JZewpj" target="_blank"><div class="project pikachu"></div></a><a href="https://codepen.io/Pixmy/full/qXYeGO" target="_blank"><div class="project torchic"></div></a><a href="https://codepen.io/Pixmy/full/XeqvNm" target="_blank"><div class="project portfolio"></div></a><a href="https://codepen.io/Pixmy/full/qaYQoV" target="_blank"><div class="project ps4"></div>
    </div>
  </div>
</div>
Пишем наш стиль:
CSS:
@import url('https://fonts.googleapis.com/css?family=Exo+2&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:900&display=swap');

body{
  background-color:#1e272e;
  overflow:hidden;
  font-family: 'Exo 2', sans-serif;
}

.video{
  width: 70%;
  height:70%;
  margin: auto;
  position: absolute;
  top: 50%; left: 50%;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}

.colors{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  text-align:center;
  animation: animation1-1 1.5s ease forwards;
 
}

.color{
  display:inline-block;
  width:16%;
  height:100%;
  animation: animation1 1.5s ease forwards;
}

.color1{
  background-color:rgba(248, 239, 186,1.0);
  box-shadow: 0px 0px 50px 20px rgba(248, 239, 186,.5);
}

.color2{
  background-color:rgba(120, 224, 143,1.0);
  box-shadow: 0px 0px 50px 20px rgba(120, 224, 143,.5);
}

.color3{
  background-color:rgba(253, 167, 223,1.0);
  box-shadow: 0px 0px 50px 20px rgba(253, 167, 223,.5);
}

.color4{
  background-color:rgba(18, 203, 196,1.0);
  box-shadow: 0px 0px 50px 20px rgba(18, 203, 196,.5);
}

.color5{
  background-color:rgba(235, 77, 75,1.0);
  box-shadow: 0px 0px 50px 20px rgba(235, 77, 75,.5);
}

.x{
  width:90%;
  height:30px;
  margin:0 auto;
  position:relative;
}

.x-bottom{
  position:absolute;
  bottom:8px;
  left:0;
  right:0;
}

.plus{
  position:relative;
  height:30px;
  width:30px;
}

.plus:after{
  background-color:white;
  content:"";
  height:30px;
  width:2px;
  color:white;
  position:absolute;
  margin-left:14px;
  box-shadow:0px 0px 5px 1px rgba(255,255,255,.5);
}

.plus:before{
  margin-top:14px;
  background-color:white;
  content:"";
  height:2px;
  width:30px;
  color:white;
  position:absolute;
  box-shadow:0px 0px 5px 1px rgba(255,255,255,.5);
}

.right{
  position:absolute;
  right:0;
  top:0;
}

.left{
  position:absolute;
  left:0;
  top:0;
}

@keyframes animation1{
  0%{margin-left:0%;margin-right:0%;width:16%;transform:scale(1);}
  50%{margin-left:6%;margin-right:6%;width:5%;transform:scale(1);}
  70%{margin-left:6%;margin-right:6%;width:5%;transform:scale(2);}
  90%{margin-left:0%;margin-right:0%;width:5%;transform:scale(.1);}
  100%{margin-left:2%;margin-right:2%;width:5%;transform:scale(0);}
}

@keyframes animation1-1{
  0%{transform:scale(1);}
  50%{transform:scale(1);}
  70%{transform:scale(2);}
  100%{transform:scale(1);}
}

.x-top:after{
  content:"";
  position:absolute;
  color:white;
  height:90px;
  width:90px;
  border-radius:50%;
  border:1px solid white;
  top:-30px;
  left:-30px;
  animation:animation2 1.5s ease forwards;
}

.x-bottom:after{
  content:"";
  position:absolute;
  color:white;
  height:90px;
  width:90px;
  border-radius:50%;
  border:1px solid white;
  top:-30px;
  right:-30px;
  animation:animation2 1.5s ease forwards;
}

.x-top{
  animation:animation3 1.5s ease forwards;
}

.x-bottom{
  animation:animation4 1.5s ease forwards;
}

@keyframes animation2{
  0%{opacity:0;transform:scale(1);}
  1%{opacity:1;transform:scale(1);}
  2%{opacity:0;transform:scale(1);}
  50%{opacity:1;transform:scale(1.5);}
  70%{opacity:1;transform:scale(.5);}
  100%{opacity:0;transform:scale(0);}
}

@keyframes animation3{
  0%{width:90%;transform:translateY(0%);}
  80%{width:90%;transform:translateY(0%);opacity:1}
  100%{width:0px;transform:translateY(800%);opacity:0;}
}

@keyframes animation4{
  0%{width:90%;transform:translateY(0%);}
  80%{width:90%;transform:translateY(0%);opacity:1}
  100%{width:0px;transform:translateY(-800%);opacity:0;}
}

/*SECOND ELEMENTS*/

.plus-center{
  margin: auto;
  position: absolute;
  top: calc(50% - 15px); left: calc(50% - 15px);
}

.plus-center{
  opacity:0;
}

.plus-center:after{
  box-shadow:0px 0px 5px 1px rgba(255,255,255,.2);
}

.plus-center:before{
  box-shadow:0px 0px 5px 1px rgba(255,255,255,.2);
}

@keyframes animation5{
  0%{opacity:0;}
  10%{opacity:1;}
  20%{opacity:1;transform:rotate(0deg);}
  70%{opacity:1;transform:rotate(880deg);}
  100%{opacity:1;transform:rotate(900deg);}
}

.first-text div{
  display:inline-block;
  color:white;
  opacity:0;
}

.first-text{
 margin-left:10px!important;
}

.top-text{
  position:absolute;
  left:0;
  right:0;
  margin: 0 auto;
  top:20px;
  text-align:center;
}

.bottom-text{
  position:absolute;
  left:0;
  right:0;
  bottom:20px;
  margin: 0 auto;
  text-align:center;
}

.this{
  animation: animation6 1s ease forwards;
  animation-delay:1.3s;
}

.my{
  animation: animation7 1s ease forwards;
  animation-delay:1.3s;
}

.is{
  animation: animation8 1s ease forwards;
  animation-delay:1.3s;
}

@keyframes animation6{
  0%{opacity:0;transform:translate(-20px);}
  100%{opacity:1;transform:translate(0px);}
}

@keyframes animation7{
  0%{opacity:0;transform:translate(20px);}
  100%{opacity:1;transform:translate(0px);}
}

@keyframes animation8{
  0%{opacity:0;}
  100%{opacity:1;}
}

@keyframes animation9{
  0%{font-size:14px;}
  20%{font-size:25px;top:20px;}
  22%{font-size:25px;top:20px;filter:blur(3px);}
  32%{font-size:25px;top:20px;filter:blur(0px);}
  80%{font-size:25px;top:20px;filter:blur(0px);}
  82%{font-size:25px;top:20px;filter:blur(3px);}
  85%{font-size:25px;top:20px;filter:blur(0px);}
  100%{font-size:25px;top:-100px;}
}

@keyframes animation10{
  0%{font-size:14px;}
  20%{font-size:25px;bottom:20px;filter:blur(0px);}
  22%{font-size:25px;bottom:20px;filter:blur(3px);}
  32%{font-size:25px;bottom:20px;filter:blur(0px);}
  80%{font-size:25px;bottom:20px;}
  100%{font-size:25px;bottom:-100px;}
}

.top-text{
  animation: animation9 2s ease forwards;
  animation-delay:2.3s;
}

.bottom-text{
  animation: animation10 2s ease forwards;
  animation-delay:2.3s;
}

.center-square{
  border:2px solid white;
  height:100px;
  width:200px;
  margin: auto;
  position: absolute;
  top: 50%; left: 50%;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
  animation: animation11 linear 1s forwards;
  opacity:0;
  animation-delay:2.3s;
}

@keyframes animation11{
  0%{opacity:1;}
  5%{opacity:0;}
  10%{opacity:1;}
  23.9%{opacity:0;width:100px;}
  24%{opacity:1;}
  25%{opacity:0;}
  60%{opacity:1;}
  100%{opacity:0;}
}

@keyframes animation12{
  0%{top: calc(50% - 15px); left: calc(50% - 15px);opacity:1;}
  60%{top: calc(20% - 15px); left: calc(20% - 15px);opacity:1;transform:rotate(0deg);}
  100%{top: calc(10% - 15px); left: calc(10% - 15px);opacity:1;transform:rotate(45deg);}
}

.plus1{
  animation: animation5 5s ease forwards 1.3s, animation12 1s ease forwards 4s;
}

.plus2{
  animation: animation5 5s ease forwards 1.3s, animation13 1s ease forwards 4s;
}

.plus3{
  animation: animation5 5s ease forwards 1.3s, animation14 1s ease forwards 4s;
}


.plus4{
  animation: animation5 5s ease forwards 1.3s, animation15 1s ease forwards 4s;
}


@keyframes animation13{
  0%{top: calc(50% - 15px); left: calc(50% - 15px);opacity:1;}
  60%{top: calc(20% - 15px); left: calc(80% - 15px);opacity:1;transform:rotate(0deg);}
  100%{top: calc(10% - 15px); left: calc(90% - 15px);opacity:1;transform:rotate(45deg);}
}

@keyframes animation14{
  0%{top: calc(50% - 15px); left: calc(50% - 15px);opacity:1;}
  60%{top: calc(80% - 15px); left: calc(20% - 15px);opacity:1;transform:rotate(0deg);}
  100%{top: calc(90% - 15px); left: calc(10% - 15px);opacity:1;transform:rotate(45deg);}
}

@keyframes animation15{
  0%{top: calc(50% - 15px); left: calc(50% - 15px);opacity:1;}
  60%{top: calc(80% - 15px); left: calc(80% - 15px);opacity:1;transform:rotate(0deg);}
  100%{top: calc(90% - 15px); left: calc(90% - 15px);opacity:1;transform:rotate(45deg);}
}

.projects{
  width: 0%;
  height:0%;
  margin: auto;
  position: absolute;
  top: 50%; left: 50%;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
  background-color:black;
  animation:animation16 .9s ease forwards;
  animation-delay:4.1s;
}

.row{
  height:50%;
}

.row-first{
  opacity:0;
  animation:animation17 1s ease forwards;
  animation-delay:4.3s;
}

.row-second{
  opacity:0;
  animation:animation17 1s ease forwards;
  animation-delay:4.3s;
}

.row .project{
  display:inline-block;
  width:25%;
  height:100%;
  vertical-align:top;
  color:white;
  background-size:cover;
  font-weight:Bold;
  position:relative;
}

@keyframes animation17{
  0%{transform:translateY(-10px);opacity:0;}
  100%{transform:translateY(0px);opacity:1;}
}

@keyframes animation18{
  0%{transform:translate(-20px);opacity:0;}
  100%{transform:translate(0px);opacity:1;}
}

.project{
  animation:animation19 .1s linear;
  animation-delay:5s;
}

@keyframes animation19{
  0%{transform:skew(0deg);}
  100%{transform:skew(60deg);}
}

@keyframes animation16{
  0%{width:0%;height:0%;}
  100%{width:70%;height:80%;}
}

.project{
  cursor:pointer;
  transition:all .3s ease;
}

.row-first:hover{
  z-index:99;
  position:relative;
}

.project:hover{
  position:relative;
  transform:scale(1.1);
  z-index:99;
  box-shadow:0px 0px 15px 10px rgba(255, 255, 255,.1);
  transition: all .3s ease;
}

.binary{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/clock.jpg");
}

.arcade{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/arcade.jpg");
}

.building{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/building.jpg");
}

.ball{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/ball.jpg");
}

.pikachu{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/pikachu.jpg");
  background-position:top;
}

.torchic{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/torchic.jpg");
  background-position:Center;
}

.bulb{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/bulb.jpg");
  background-position:Center;
}

.portfolio{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/portfolio.jpg");
}

.ps4{
  background-image: url("http://www.pixmy.tech/Projects/Codepen/ps4.jpg");
  background-position:center;
}

.binary:after{
  content:"Binary Clock";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}

.ps4:after{
  content:"PS4 Interface";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}

.arcade:after{
  content:"CSS Arcade";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}

.building:after{
  content:"CSS Building";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}


.ball:after{
  content:"Magic Sphere";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}

.pikachu:after{
  content:"CSS Pikachu";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}

.torchic:after{
  content:"CSS Torchic";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}

.bulb:after{
  content:"CSS Bulb";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}

.portfolio:after{
  content:"My Portfolio";
  position:absolute;
  bottom:10px;
  left:10px;
  text-shadow:2px 2px rgba(0,0,0,.7);
}

.project:after{
  font-size:13px;
}




.head{
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
  position:absolute;
  left:0;
  right:0;
  margin: auto;
  top:-100px;
  animation: arrow-top 1s ease forwards;
  animation-delay:3.6s;
}

.head:after{
  content:"";
  height:30px;
  width:2px;
  left:-1px;
  background-color:white;
  position:absolute;
  top:-35px;
}

@keyframes arrow-top{
  0%{top:-35px;opacity:1;}
  50%{top:50%;opacity:1;}
  100%{top:50%;opacity:0;}
}

/**/

.head2{
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
  position:absolute;
  left:0;
  right:0;
  margin: auto;
  bottom:-100px;
  animation: arrow-bottom 1s ease forwards;
  animation-delay:3.6s;
}

.head2:after{
  content:"";
  height:30px;
  width:2px;
  left:-1px;
  background-color:white;
  position:absolute;
  bottom:-35px;
}

@keyframes arrow-bottom{
  0%{bottom:-35px;opacity:1;}
  50%{bottom:50%;opacity:1;}
  100%{bottom:50%;opacity:0;}
}

.bg{
  font-family: 'Montserrat', sans-serif;
  color:rgba(255,255,255,.1);
  font-size:105px;
  position:fixed;
  top: 50%;
  bottom: 0;
  margin: auto;
  left: -200px;
  right: inherit;transform-origin: top;
  opacity:0;
  animation:bg 1s ease forwards;
  animation-delay:5s;
  transform:rotate(-90deg);
}

@keyframes bg{
  0%{opacity:0;filter:blur(10px)}
  100%{opacity:1;filter:blur(0px);}
}

.big{
  position:absolute;
  bottom:0px;
  right:-300px;
  font-size:75px;
  font-weigh:bold;
  color:rgba(255,255,255,.3);
  animation: big .3s ease forwards;
  font-family: 'Montserrat', sans-serif;
  animation-delay:2.3s;
  opacity:0;
}

@keyframes big{
  0%{opacity:0;filter:blur(5px);}
  50%{opacity:1;filter:blur(0px);}{
  100%{opacity:0;filter:blur(5px);}
}
Смотрим наш результат:
fg37.gif
Автор
baltun
Скачиваний
0
Просмотры
562
Первый выпуск
Обновление
Рейтинг
0.00 звёзд Оценок: 0

Ещё ресурсы от baltun

Похожие ресурсы
Назад
Верх Низ