123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- body{
- position:relative;
- overflow-x:hidden;
- }
- /*first lvl*/
- .btn{
- display:flex;
- position:fixed;
- width:35px;
- height:100%;
- top:0;
- left:0;
- background:#818181;
- }
- .btn>a{
- display:fixed;
- position: absolute;
- height: 30px;
- left: -35px;
- top: 50%;
- color:#fff;
- text-decoration:none;
- font-size:25px;
- transform:rotate(90deg);
- position:relative;
- white-space:nowrap;
- }
- .menu{
- position:fixed;
- top:0;
- left:0;
- width:300px;
- height:100%;
- text-align:left;
- background:#818181;
- transform:translateX(-300px);
- transition: transform 0.4s;
- }
- .list{
- display:flex;
- justify-content:center;
- text-align:left;
- height:100%;
- flex-direction:column;
- margin-left:15%;
- }
- .list a{
- display:inline-block;
- color:#FFFFFF;
- text-align:left;
- text-decoration:none;
- font-size:30px;
- margin-top:10px;
- }
- .list a:before{
- display:inline-block;
- content:'';
- height:10px;
- width:10px;
- background:#FFB33A;
- margin:3px 10px;
- border:2px groove black;
- transform:rotate(45deg);
- }
- .content{
- display: flex;
- position: fixed;
- left: 35px;
- width: 100vw;
- height: 150%;
- }
- .btn:hover .menu{
- transform: translateX(0px);
- }
- .list a:hover{
- color:#FFB33A;
- }
- .content{
- position:fixed;
- top:0;
- left:0;
- text-align:left;
- transform:translateX(35px);
- transition: transform 0.4s;
- }
- .btn:hover+.content{
- transform: translateX(300px);
- }
- /*second lvl*/
- .crd{
- position: fixed;
- display:flex;
- background: #0d5825;
- height: 500px;
- width: 500px;
- top: 10%;
- left: 10%;
- transition: transform 0.4s;
- }
- .txt{
- position: absolute;
- width: 450px;
- height: 100px;
- display:block;
- justify-content:center;
- text-align:center;
- flex-direction:column;
- margin:25px;
- top: 0;
- left: 0;
- }
- .txt blockquote{
- color: #FFFFFF;
- font-size: 25px ;
- text-align: center;
- margin-top: 10px;
- }
- .txt blockquote:last-child{
- color: #FFFFFF;
- font-size: 25px ;
- text-align: center;
- font-style: oblique;
- }
- .card{
- display: inline-block;
- position: absolute;
- justify-content: center;
- width: 500px;
- height: 400px;
- left: 0;
- bottom:0;
- }
- .crd img{
- z-index: 1;
- width: 120px;
- position:absolute;
- transform: translateX(-50px) rotate(-25deg);
- top: 100px;
- left: 200px;
- transition: transform 0.4s;
- }
- .crd img:nth-child(2){
- z-index: 2;
- width: 120px;
- transform: rotate(-10deg);
- position: absolute;
- transition: transform 0.4s;
- }
- .crd img:last-child{
- z-index: 3;
- width: 120px;
- position: absolute;
- transform: translate(50px,15px) rotate(10deg);
- transition: transform 0.4s;
- }
- img:hover{
- transform: translate(-50px,-30px) rotate(-25deg);
- }
- img:hover:nth-child(2){
- transform: translateY(-30px) rotate(-10deg);
- }
- img:hover:last-child{
- transform: translate(50px,-20px) rotate(10deg);
- }
- /*fourth lvl*/
- .hub{
- position: fixed;
- height: 300px;
- width: 300px;
- display:flex;
- top: 18%;
- left: 60%;
- transition: transform 0.4s;
- }
- .box{
- width:100px;
- height: 100px;
- animation: jump 4s 0.3s infinite normal both;
- }
- @keyframes jump {
- 0%{
- background: #F6FF00;
- transform: translateX(200px);
- }
- 25%{
- background: #FF0000;
- transform: translateX(0px);
- }
- 50%{
- background: #3600FF;
- transform: translateY(200px);
- }
- 75%{
- background: #36F000;
- transform: translate(200px,200px);
- }
- 100%{
- background: #F6FF00;
- transform: translate(200px,0px);
- }
- }
|