何の作業中か
模写コーディングをしています。
目標のサイト https://linew.co.jp/
問題
時間差でfadeInさせたいができない。
現在は、同じタイミングで出てきてしまう。
試した事として、animation-delay などで設定を試みてみた。
目標
時間差でのfadeInをすること。
html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>株式会社LiNew</title>
<link rel="stylesheet" type="text/css" href="base.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700&display=swap" rel="stylesheet">
<script src="jsscript.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/jquery-2.2.4.js" integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI=" crossorigin="anonymous"></script>
<script>
$(function() {
$(window).scroll(function() {
$(".fadeIn").each(function() {
var targetElement = $(this).offset().top;
var scroll = $(window).scrollTop();
var windowHeight = $(window).height();
if (scroll > targetElement - windowHeight) {
$(this).addClass("scrollin");
} else {
$(this).removeClass("scrollin");
}
});
});
});
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<mainvisual>
<div class="nav-totoggle">
<img src="image/IMG_0218-4.jpeg" />
<img src="image/IMG_0224-1.jpeg" />
<img src="image/IMG_0256.jpeg" />
<img src="image/IMG_0258-1.jpeg" />
</div>
<div class="word">
<p>世の中の課題をITで解決し、<span>関わった世界中の人達を幸せにする</span></p>
</div>
</mainvisual>
<header class="header-wrp">
<div class="header-box">
<div id="inner-header">
<a href="#"><img src="image/logo_green.png"></a>
<nav class="navglobal">
<ul class="header-list">
<li class="header-list">News</li>
<li class="header-list">About</li>
<li class="header-list">Serice</li>
<li class="header-list">Recruit</li>
<li class="header-list">Contact</li>
</ul>
</nav>
</div>
</div>
</header>
<section>
<div class=our-service>
<div class="content1">
<div class="Our-Service fadeIn_down fadeIn">
<h1>Our Service</h1>
</div>
<li class="fadeIn_up fadeIn">
<div class="content1-wrp">
<div class="content1-imgs1">
<img src="image/educure01.jpg">
</div>
<div class="servis-text">
<img class=img1 src="./image/black.png" alt="">
<p class=first-text>DXを推進するエンジニア育成</p>
<p class=second-text>IT事業参入をご検討中の事業者様向けのサービスです。</p>
</div>
</div>
</li>
</div>
<div id="content2">
<li class="fadeIn_up fadeIn">
<div class="service-text2">
<img class=img2 src="./image/logo.png" alt="">
<p class=first-text>未経験から</br>本気でエンジニアへ</p>
<p class=second-text>「未経験から本気でエンジニア」を目指すプログラミングスクールです。</p>
</div>
<div class=content-imgs2>
<img src="./image/techpassion01.jpg" alt="">
</div>
</li>
</div>
<div id="content3">
<li class="fadeIn_up fadeIn">
<div class=content-imgs3>
<img src="./image/6c40ac7b707e13491fda6a6b4f02d82d.jpg" alt="">
</div>
<div class="service-text3">
<img class=img3 src="./image/abb886337b510d088a858a59a12bf114.png" alt="">
<p class=first-text>人生を変える英会話アプリ</p>
<p class=second-text>登録者25万人!YouTuber講師ジョージ監修!オンライン英会話アプリ!</p>
</div>
</li>
<div class="other-service fadeIn_right fadeIn">
<a href="#">Other-service ➡</a>
</div>
</div>
</div>
<div class="our-divsion">
<li class="fadeIn_down fadeIn">
<div class="vision-menu">
<div class="our-vision fadeIn_down fadeIn">
<h1>our-vision</h1>
</div>
</li>
<div class="vision-title fadeIn_up fadeIn">
<h3>世界の課題をITで解決して、</br>関わった<strong>世界中の人たちを幸せにする<strong></h3>
</div>
<ul class="vision-service">
<li class="fadeIn_up fadeIn">
<p class="vision-text1">ITを通じて</br>人々の可能性を広げる</p>
<p class="vision-text2">イノベーションを起こし新たな価値を創造する</p>
</li>
<li class="fadeIn_up fadeIn">
<p class="vision-text1">世界を代表する</br>自社サービスを作る</br>人々の可能性を広げる</p>
<p class="vision-text2">世の中にインパクトを与える</p>
</li>
<li class="fadeIn_up fadeIn">
<p class="vision-text1">世界から選ばれる企業へ</p>
<p class="vision-text2">常に最高のパフォーマンスを発揮します</p>
</li>
</ul>
</div>
</div>
<div class="news">
<li class="fadeIn_down fadeIn">
<div class="news-menu">
<div class="news fadeIn_down fadeIn">
<h1>News</h1>
</li>
</div>
<div class="news-topics">
<div class="news-topic">
<div class="news-list fadeIn_up fadeIn">
<img width="170" height="90" src="/image/prtimes.png">
<div class="news-text">
<p>2022-01-14 <a href="#">プレスリリース メディア<a /> <a href="#">自社サービス</a> </p>
<a href="#">【プレリリース】DXを促進するリスキング(再教育)サービス</br>「EDUcare(エドゥキュア)」</a>
</div>
</div>
<div class="news-list fadeIn_up fadeIn">
<img width="170" height="90" src="/image/prtimes.png">
<div class="news-text">
<p>2022-10-29 <a href="#">プレスリリース メディア<a /> <a href="#">自社サービス</a> </p>
<a href="#">【プレリリース】【プレスリリース】IT人材教育システム「educure」”Cross Education Lab.”
芝浦工大 新熊亮一教授監修により更にデータドリブンな教育プログラムが提供可能に!</a>
</div>
</div>
<div class="news-list fadeIn_up fadeIn">
<img width="170" height="90" src="/image/IMG_0218-4-125x125.jpeg">
<div class="news-text">
<p>2021-05-01 <a href="#">会社情報<a /> </p>
<a href="#">本社オフィス移転のお知らせ</a>
</div>
</div>
<div class="news-list fadeIn_up fadeIn">
<img width="170" height="90" src="/image/prtimes.png">
<div class="news-text">
<p>2021-04-01 <a href="#">プレスリリース メディア<a /> <a href="#">自社サービス</a> </p>
<a href="#">【プレスリリース】人材派遣の勤怠管理から請求書作成、従業員の給与明細まで
一元化できる管理システム「kint」をリリース</a>
</div>
</div>
<div class="news-list fadeIn_up fadeIn">
<img width="170" height="90" src="/image/prtimes.png">
<div class="news-text">
<p>2021-03-01 <a href="#">プレスリリース メディア<a /> <a href="#">自社サービス</a> </p>
<a href="#">【プレスリリース】未経験からエンジニアになれる、IT人材教育プログラミングスクール「Tech Passion」開講</a>
</div>
</div>
<div class="other-service2 fadeIn_right fadeIn">
<a href="#">other-news ➡</a>
</div>
</div>
</div>
</div>
</div>
<div class="about-us">
<li class="Our-Service fadeIn_down fadeIn">
<div class="about-menu">
<h1>About-Us</h1>
</div>
</li>
<div class="about-lists">
<div class="about-list">
<div class="about-text fadeIn_down fadeIn">
<div class="tr">
<p class="th">会社名</p>
<p class="td">株式会社LiNew</p>
</div>
<div class="tr">
<p class="th">代表</p>
<p class="td">CEO西本弘昌</br>COO井上陽介</p>
</div>
<div class="tr">
<p class="th">資本金</p>
<p class="td">500万</p>
</div>
<div class="tr">
<p class="th">事業内容</p>
<p class="td">コンサルティング/システム開発、受託開発/自社製品販売/教育・研修/アウトソーシング/職業紹介、人材紹介</p>
</div>
<div class="tr">
<p class="th">本社住所</p>
<p class="td">
〒150-0002</br>東京都渋谷区渋谷3丁目6-20 第5矢木ビル 5F
<a href="#">GoogleMap</a>
</p>
</div>
<div class="tr">
<p class="th">福岡支社</p>
<p class="td">
〒812-0011</br>福岡県福岡市博多区博多駅前4-18-19 博多フロントビル703
<a href="#">GoogleMap</a>
</p>
</div>
<div class="tr">
<p class="th">大阪支社</p>
<p class="td">
〒542-0081</br>大阪市中央区南船場3-8-7 三栄ムアビル1202
<a href="#">GoogleMap</a>
</p>
</div>
<div class="tr">
<p class="th">京都支社</p>
<p class="td">
〒606-8302</br>京都府京都市左京区吉田牛ノ宮町6-1
<a href="#">GoogleMap</a>
</p>
</div>
</div>
<div class="about-image fadeIn_up fadeIn">
<img src="./image/IMG_0218-4.jpeg" alt="">
</div>
</div>
<div class="more-info fadeIn_right fadeIn">
<a href="#">More-Info ➡</a>
</div>
</div>
</div>
<div class="recruit">
<li class="fadeIn_down fadeIn">
<div class="recruit-menu">
<h1>Recruit</h1>
</div>
</li>
<li class="fadeIn_up fadeIn">
<div class="recruit-text">
<p>熱いパッションを持っている<strong>あなたを</strong>待っています。</p>
</div>
<div class="recruit-select">
<h2>現在募集中の職種</h2>
<div class="recruit-jobs">
<div class="job fadeIn_up fadeIn">エンジニア➡</div>
<div class="job fadeIn_up fadeIn">営業➡</div>
<div class="job fadeIn_up fadeIn">PR・広報➡</div>
</div>
</div>
</li>
<div class="more-info fadeIn_right fadeIn">
<a href="#">More-Info ➡</a>
</div>
</div>
</section>
<footer>
<div class="footer-contents">
<div class="company">
<p>
<img src="https://linew.co.jp/wp-content/themes/linew/library/images/logo_white.svg" alt="">
</p>
<p class="adress">〒150-0002</br>東京都渋谷区渋谷3丁目6-20 第5矢木ビル 5F</br>03-6453-8617</p>
<p class="at">© 2022 株式会社LiNew.</p>
</div>
<div class="footer-content">
<div class="footer-menu">
<p>News</p>
<p>About</p>
<p>Service</p>
<p>Recruit</p>
<p>Contact</p>
</div>
<div class="footer-link">
<div class="link">
<a href="#">educure <strong>➡︎</strong></a>
</div>
<div class="link">
<a href="#">TECH Passion<strong>➡︎</strong></a>
</div>
<div class="link">
<a href="#">人生を変える英会話アプリ<strong>➡︎</strong></a>
</div>
</div>
</div>
</div>
</footer>
<script>
(function($) {
$(".slide-text").on("inview", function(event, isInView) {
if (isInView) {
$(this).stop().addClass("is-show");
} else {
$(this).stop().removeClass("is-show");
}
});
if (isInView) {
$(this).stop().addClass("is-show");
}
});
$(".fadeIn_down").on("inview", function(event, isInView) {
if (isInView) {
$(this).stop().addClass("is-show");
} else {
$(this).stop().removeClass("is-show");
}
});
$('.fadeIn_up').on("inview", function(event, isInView) {
if (isInView) {
$(this).stop().addClass("is-show");
} else {
$(this).stop().removeClass("is-show");
}
});
$(".fadeIn_right").on("inview", function(event, isInView) {
if (isInView) {
$(this).stop().addClass("is-show");
} else {
$(this).stop().removeClass("is-show");
}
});
</script>
</body>
</html>
css
@charset "UTF-8";
/* reset */
body, h1, h2, h3, h4, h5, h6, p, address,
ul, ol, li, dl, dt, dd, img, form, table, tr, th, td {
margin: 0;
padding: 0;
border: none;
font-style: normal;
font-weight: normal;
font-size: 100%;
text-align: left;
list-style-type: none;
border-collapse: collapse;
}
textarea { font-size: 100%; vertical-align:middle;}
img { border-style: none; display: block; }
hr { display: none; }
em{font-style: normal}
input{line-height:auto;vertical-align:middle;}
strong.more{color:#c30}
a{text-decoration: none;}
html {
}
body {
font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
/* 上の部分は気にせずここから書く */
html {
background-color: #f5f5f5
}
.fadeIn_down {
opacity: 0;
transform: translateY(-20%);
transition: 1s;
}
.fadeIn_Down.is-show {
transform: translate(0, 0);
opacity: 1;
}
.fadeIn_up {
opacity: 0;
transform: translate(0, 20px);
transition: 1s;
}
.fadeIn_up.is-show {
transform: translate(0, 0);
opacity: 1;
}
.fadeIn_right {
opacity: 0;
transform: translateX(-10%);
transition: 1s;
}
.fadeIn_right.is-show {
transform: translate(0, 0);
opacity: 1;
}
.fadeIn.scrollin {
opacity: 1;
transform: translate(0, 0);
}
.word {
font-size: 32px;
font-weight: 700;
font-family: 'Noto Sans JP', sans-serif;
position: absolute;
bottom: 0;
color: #fff;
margin-left: 30px;
margin-bottom: 30px;
opacity: 0;
animation: fadein-bottom 1.5s 0.5s ease-out forwards;
}
@keyframes fadein-bottom {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.header-wrp {
/*transition: top 0.7s;*/
width: 100%;
height: 120px;
background-color: #fff;
position: fixed;
top: 0;
opacity: 0;
animation: fadein-top 1.5s 1.5s ease-out forwards;
z-index: 10;
}
@keyframes fadein-top {
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 0.9;
transform: translateY(0);
}
}
.header-box {
max-width: 1200px;
margin: 0 auto;
justify-content: space-between;
padding-top: 30px;
}
#inner-header {
display: flex;
justify-content: space-between;
padding: 2px 2.5px;
align-items: center;
}
.header-list {
display: flex;
max-width: 1200px;
}
.header-list li {
justify-content: center;
padding: 0 10px;
}
.fadein-header img {
max-width: 100%;
height: 100px;
margin: 0 auto;
}
.nav-totoggle {
position: relative;
min-height: 100vh;
width: 100%;
}
.nav-totoggle img {
position: absolute;
opacity: 0;
transition: all 1s ease-in-out;
height: 100%;
width: 100%;
}
span {
color: #FF0;
}
#our-service {
z-index: 9;
}
.content1 {
margin: auto;
padding-top: 125px;
}
.content1-wrp {
display: flex;
}
h1 {
font-size: 28px;
font-family: 'Noto Sans JP', sans-serif;
border-top: solid 2px #2da690;
max-width: 200px;
margin: 0 auto;
font-weight: 500px;
text-decoration: none;
padding-top: 4px;
text-align: center;
white-space: nowrap;
}
.content1-imgs1 img {
height: 665px;
width: 665px;
object-fit: contain;
right: 42vw;
bottom: -37vw;
animation-delay:
}
.servis-text {
height: 340.5px;
width: 672px;
position: absolute;
background-color: #fff;
right: 13vh;
bottom: 20vh;
opacity: 0.9;
font-family: 'Noto Sans JP', sans-serif;
}
.service-text2 {
position: absolute;
background-color: #fff;
font-family: 'Noto Sans JP', sans-serif;
opacity: 0.9;
height: 373px;
width: 672px;
margin-left: 15vh;
z-index: 2;
}
.service-text3 {
height: 340.5px;
width: 672px;
position: absolute;
background-color: #fff;
right: 13vh;
bottom: 20vh;
opacity: 0.9;
font-family: 'Noto Sans JP', sans-serif;
z-index: 2;
bottom: 13vh;
}
.service-text3 img {
height: 64px;
width: 76px;
max-height: 64px;
max-width: 100%;
margin-top: 2rem;
}
.img1 {
display: flex;
height: 100px;
width: 200px;
object-fit: contain;
position: relative;
margin: 40px;
margin-top: 10px;
}
.img2 {
display: flex;
height: 100px;
width: 200px;
object-fit: contain;
position: relative;
margin: 40px;
margin-top: 10px;
}
.img3 {
display: flex;
height: 100px;
width: 200px;
object-fit: contain;
position: relative;
margin: 40px;
margin-top: 10px;
}
.first-text {
font-size: 32px;
margin: -20px 0 20px 45px;
}
.second-text {
margin: 0 0 20px 45px;
opacity: 0.5;
}
#content2 {
width: 1120px;
}
#content3 {
line-height: 5rem;
width: 100%;
}
.content-imgs2 img {
height: 457px;
width: 684px;
max-height: 500px;
max-width: 100%;
margin: 0 0 0 80vh;
position: relative;
bottom: 10vh;
z-index: 1;
}
.content-imgs3 img {
height: 399px;
width: 684px;
max-height: 500px;
max-width: 100%;
margin: 0 0 0 0vh;
position: relative;
bottom: 10vh;
z-index: 1;
}
.other-service {
text-align: right;
margin-bottom: 5rem;
font-weight: bold;
padding-right: 2rem;
}
.other-service a {
color: black;
}
.our-divsion {
padding: 5rem 0 7rem 0;
background-image: url(./image/bg01.jpg);
background-size: 100% auto;
}
.vision-service li {
width: 33.3%;
}
.vision-title h3 {
font-size: 2.6rem;
font-weight: 400;
margin: 0 auto;
text-align: center;
margin-bottom: 4rem;
}
.vision-service {
display: flex;
}
.vision-text1 {
font-size: 2rem;
font-weight: 700;
line-height: 2.5rem;
color: #2da690;
margin: 0 0 1.5rem;
text-align: center;
}
.vision-text2 {
margin: 0;
font-size: 1rem;
line-height: 1.5rem;
font-weight: 400;
color: #808080;
text-align: center;
}
.news-topics {
margin: 0 auto;
padding-left: 2.5rem;
padding-right: 2.5rem;
width: 100%;
max-width: calc(1120px + 2.5rem * 2);
}
.news-list {
display: flex;
padding: 1rem 0 1rem 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.news-list img {
object-fit: cover;
}
.news-text {
padding-left: 1rem;
}
.news-text a {
color: gray;
}
.news-text p a {
color: black;
}
.news-text p a {
color: #C0C0C0;
}
.other-service2 {
text-align: right;
margin-bottom: 5rem;
font-weight: bold;
padding-right: 2rem;
margin-top: 6rem;
}
.other-service2 a {
color: black;
}
.news h1 {
margin-top: 6rem;
}
.more-info {
text-align: right;
margin-bottom: 5rem;
font-weight: bold;
margin-top: 3rem;
padding-right: 2rem;
}
.more-info a {
color: black;
}
.about-menu {
width: 100%;
margin: 0 auto;
margin: 5rem 0 4rem 0;
}
.about-us {
background-image: url(https://linew.co.jp/wp-content/uploads/2021/05/bg02.jpg);
background-size: 100% auto;
padding: 3rem;
background-size: cover;
background-position: center;
margin-bottom: 7rem;
}
.about-lists {
padding-bottom: 3rem;
}
.about-list {
display: flex;
padding: 0 2.5rem 0 2.5rem;
}
.about-image {
width: 50%;
padding-left: 1rem;
}
.about-image img {
max-width: 100%;
height: 100%;
width: 100%;
object-fit: cover;
}
.tr {
display: flex;
}
.tr .th {
max-width: 17%;
border-bottom: 1px solid #2da690;
margin: 0 0 5rem 0 0;
width: 100%;
padding: 1rem 0 1rem 0;
}
.tr .td {
padding: 1rem 0;
width: 100%;
color: gray;
border-bottom: 1px solid #C0C0C0;
}
.tr .td a {
color: #2da690;
display: block;
}
.about-text {
width: 50%;
}
.recruit {
font-family: 'Noto Sans JP', sans-serif;
}
.recruit-menu {
padding-left: 2.5rem;
padding-right: 2.5rem;
}
.recruit-text {
font-size: 1.33333rem;
line-height: 2rem;
margin: 3.5rem auto;
font-weight: bold;
}
.recruit-text p{
text-align: center;
}
.recruit-text strong{
color: #2da690;
}
.recruit-select {
background: #fff;
text-align: center;
padding: 2.5rem;
margin: 0 2.5rem 0 2.5rem;
}
.recruit-select h2 {
text-align: center;
font-weight: bold;
padding-bottom: 2rem;
}
.recruit-jobs {
display: flex;
}
.job {
width: 100%;
max-width: 25%;
margin: auto;
text-align: center;
border: 1px solid #C0C0C0;
padding: 0.8rem;
}
footer {
background-color: #555555;
padding: 4rem 0 4rem 0;
color: white;
}
.footer-contents {
display: flex;
width: 100%;
padding-left: 2.5rem;
padding-right: 2.5rem;
}
.footer-menu {
display: flex;
}
.footer-menu a {
color: white;
padding: 0 1rem 1rem 1rem;
font-weight: 0.9rem;
}
.company {
width: 50%;
}
.footer-content {
width: 50%;
}
.adress {
margin: 1.5rem 0;
color: rgba(255, 255, 255, 0.54);
font-size: 0.9rem;
line-height: 1.3rem;
}
.at {
margin: 0 auto;
color: rgba(255, 255, 255, 0.54);
font-size: .8rem;
line-height: 1.3rem;
}
.footer-link {
display: flex;
margin: 1.5rem 0;
}
.link {
border: 1px solid gray;
padding: 0.8rem;
margin: 0.5rem;
}
.link a {
color: white;
font-size: 0.8rem;
font-weight: bold;
}
.link a strong {
color: #2da690;
}
.fadeIn {
opacity: 0;
transform: translate(0, 80px);
transition: all 800ms;
}
.fadeIn.top {
transform: translate(0, -80px);
}
.fadeIn.second {
transition: all 1000ms;
}
.fadeIn.third {
transition: all 1200ms;
}
.fadeIn.top.fourth {
transition: all 2500ms;
}