17
September
Keyframe animation2
opening animation1
2秒で全面画像が徐々に出現する
opening animation2
使用text
Explore the World!
We support Customers.
opening animation3
使用テキスト
Tokyo Travel Agency
HOME
ABOUT
TROUS
ACCESS
CONTACT
sns icons
Explore the World!
We support Customers.
Start Tour
html(09/17)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
<body> <header> <!-- Header-top --> <div class="header-top"> <div class="container"> <h1>Tokyo Travel Agency</h1> <nav class="pcnav"> <ul> <li><a href="#">HOME</a></li> <li><a href="#service-top">ABOUT</a></li> <li><a href="#info">TOURS</a></li> <li><a href="#">ACCESS</a></li> <li><a href="#pamph">CONTACT</a></li> </ul> </nav> </div> </div> <!-- SNS icon --> <aside class="container"> <a href="#"><i class="fab fa-facebook-square"></i></a> <a href="#"><i class="fa-brands fa-square-x-twitter"></i></a> <a href="#"><i class="fa-brands fa-line"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> </aside> <!-- Start btn --> <p class="start"> <a href="#"> <i class="fas fa-plane"></i>Start Tour </a> </p> <!-- 矢印リンク --> <a class="link"> <i class="fas fa-arrow-down"></i> </a> </header> <p class="copy">Discover the world like never before!<br> Your dream journey starts with us.</p> </body> |
css(09/24)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
@charset "utf-8"; /* Reset */ html{ scroll-behavior: smooth; } *{ margin:0; padding: 0; } body{ line-height: 1; font-family: sans-serif; background: #830749; } ul{ list-style: none; } a{ text-decoration: none; color: inherit; display: block; } img{ max-width: 100%; vertical-align: bottom; } /* Header */ header{ height: 100vh; height: 100dvh; color: #fff; background: url(../img/paris.jpg) no-repeat center/cover; opacity: 0; animation:fadeIn 1s 1s forwards; } @keyframes fadeIn{ 100%{opacity:1;} } /* 共通css */ .container{ max-width:1000px; display: flex; margin-inline: auto; padding-inline:2em; } /* Header-top */ .header-top{ background: #830749; /* Nesting */ & .container{ justify-content: space-between; align-items: flex-end; padding-block: 20px; } } /* Title */ h1{ font-family: 'Great Vibes', cursive; letter-spacing: 3px; animation: spin 5s infinite; /* Nesting */ & span{color: #fc0;} } @keyframes spin{ 100%{rotate: y 1turn;} } /* Navigation */ .pcnav ul{ display: flex; gap: 10px; /* Nesting */ & li{ letter-spacing: 2px; } & a:hover{ color:#fc0; } & a::after{ content: ""; display: block; height: 3px; background:#fc0; margin-top: 2px; scale: 0 1; transition: 200ms; } & a:hover::after{ scale:1 ; } } /* SNS icons */ aside.container{ margin-top: 2em; justify-content:flex-end; & a + a{ margin-left: 1em; } & i{ font-size:50px; color: #ccc; /* background:#00f ; */ line-height:42px; border-radius: 10px; transition: 300ms; } /* Hover effect */ & a:hover i{ rotate:1turn; scale:1.5; background:#fff ; } & a:nth-child(1):hover i{ color: #2e3192; } & a:nth-child(2):hover i{ color: #000; } & a:nth-child(3) i{ font-size: 45px; } & a:nth-child(3):hover i{ color: #06c755; } /* Instagram logo 背景 */ & a:nth-child(4) {position: relative;} & a:nth-child(4)::after{ content: ""; display: block; width: 40px; height: 40px; border-radius: 10px; /* background: #fff; */ position: absolute; z-index:-1; top: 0; left: 0; transition: 300ms; } & a:nth-child(4):hover::after{ background: #fff; rotate:1turn; scale: 1.5; } & a:nth-child(4):hover i{ background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); background-clip: text; /* ベンダープレフィックス */ -webkit-background-clip: text; color:transparent; } } /* Copy */ .copy{ position: absolute; width:fit-content; height: 2.3em; inset: 0; margin:auto; text-align: center; color: #fff; font-family: 'Great Vibes', cursive; font-size: 5em; line-height: 1.3; text-shadow: 3px 3px 3px #000; opacity: 0; scale:0; animation:copy 1s forwards; } @keyframes copy{ 0%{opacity: 0;scale:0;} 100%{ opacity:1; scale:1; rotate:1turn; } } /* Start Btn */ .start{ width:300px; color: #fff; background:#f50; text-align: center; font-size: 24px; font-weight: bold; border-radius: 5px; position: absolute; margin:auto; right: 0; left:0; bottom:20vh; } .start a{ padding-block: 0.8em; transition: 200ms; } .start a:hover{ background:#fc0; color: #f50; } .start i{ margin-right: 20px; transition: 200ms; } .start a:hover i{ scale:3; rotate:1turn; } /* Font-awsomme */ .link{ width: fit-content; position: absolute; margin: auto; left: 0; right: 0; bottom:5vh; font-size: 50px; color:#fc0; animation: up-down 2s infinite; } @keyframes up-down{ 0%, 20%, 50%, 80%, 100% { translate:0 0; } 40% { translate:0 -30px; } 60% { translate:0 -15px; } } |
Other animation
5秒でタイトルを回転