123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- header,
- .cards,
- .boxs,
- .square {
- height: 100vh;
- }
- .container {
- max-width: 1270px;
- padding: 20px 15px 0;
- margin: 0 auto;
- }
- /* header */
- .wrapper {
- height: 100vh;
- width: 20%;
- background-color: grey;
- font-size: 20px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- transition: all 0.8s ease;
- transform: translateX(-80%);
- }
- .wrapper:hover {
- transform: translateX(0);
- }
- .header li {
- margin-bottom: 50px;
- position: relative;
- left: 25px;
- }
- .header li::before {
- content: "";
- width: 20px;
- height: 20px;
- background: url("../images/rhombus.png") no-repeat;
- background-size: 20px;
- position: absolute;
- top: 2px;
- left: -25px;
- }
- .header a {
- color: white;
- transition: all 0.6s ease;
- }
- .header a:hover {
- color: orange;
- }
- .close {
- color: white;
- writing-mode: vertical-rl;
- margin-right: 20px;
- transition: 0.8s ease;
- }
- .wrapper:hover .close {
- opacity: 0;
- }
- /* cards */
- .cards {
- position: relative;
- background-color: #0d5825;
- }
- .cards__block {
- position: absolute;
- top: 50%;
- left: 0;
- right: 0;
- bottom: 0;
- transform: translate(0, -50%);
- }
- .cards__text {
- color: white;
- font-size: 25px;
- margin-bottom: 50px;
- }
- .cards__blockquote,
- .cards__paragraph,
- .cards__cite {
- margin: 0;
- text-align: center;
- }
- .cards__paragraph {
- font-weight: bold;
- }
- .blocks {
- position: absolute;
- height: auto;
- width: 100px;
- right: 0;
- left: 0;
- margin: 0 auto;
- }
- .block__img {
- width: 150px;
- position: absolute;
- }
- .block__img-first {
- top: 4px;
- right: 25px;
- transform: rotate(-20deg);
- }
- .block__img-first:hover {
- transform: translateY(-20px) rotate(-20deg);
- }
- .block__img-second {
- top: 15px;
- right: -15px;
- transform: rotate(-2deg);
- }
- .block__img-second:hover {
- transform: translateY(-20px) rotate(-2deg);
- }
- .block__img-third {
- top: 35px;
- right: -55px;
- transform: rotate(197deg);
- }
- .block__img-third:hover {
- transform: translateY(-20px) rotate(197deg);
- }
- /* boxs */
- .boxs {
- position: relative;
- }
- .box__pink,
- .box__blue,
- .box__green {
- position: absolute;
- width: 200px;
- height: 200px;
- margin: 0 auto;
- top: 50%;
- left: 0;
- right: 0;
- bottom: 0;
- transform: translate(0, -50%);
- }
- .box__pink {
- background-color: plum;
- transform: translate(-70%, -120%);
- }
- .box__blue {
- background-color: royalblue;
- transform: translate(0, -50%);
- z-index: 1;
- }
- .box__green {
- background-color: rgb(113, 177, 113);
- transform: translate(70%, 20%);
- }
- /* square */
- .square {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .square__block {
- width: 500px;
- height: 500px;
- border: 3px solid palevioletred;
- position: relative;
- }
- .square__box {
- width: 100px;
- height: 100px;
- position: absolute;
- left: 0;
- top: 0;
- animation-name: random;
- animation-duration: 6s;
- animation-iteration-count: infinite;
- }
- @keyframes random {
- 0% {
- background-color: rgb(179, 144, 204);
- left: 0;
- top: 0;
- }
- 25% {
- top: calc(100% - 100px);
- bottom: 0;
- left: 0;
- background-color: lightcoral;
- }
- 50% {
- left: calc(100% - 100px);
- bottom: 0;
- top: calc(100% - 100px);
- background-color: lightskyblue;
- }
- 75% {
- left: calc(100% - 100px);
- bottom: calc(100% - 100px);
- top: 0;
- background-color: palegoldenrod;
- }
- 100% {
- left: 0;
- top: 0;
- background-color: tomato;
- }
- }
|