プログレスバー1 写真5枚用レスポンシブWebデザイン

Demo

HTML&CSS

HTMLindex.htmldownload

<div class="slide_show_timer_progress_bar1_5"><span class="slide_show_timer_progress_bar1_5_1"></span></div>

<div class="slide_show_timer_progress_bar1_5"><span class="slide_show_timer_progress_bar1_5_1 delay_6s"></span></div>

<div class="slide_show_timer_progress_bar1_5"><span class="slide_show_timer_progress_bar1_5_1 delay_12s"></span></div>

<div class="slide_show_timer_progress_bar1_5"><span class="slide_show_timer_progress_bar1_5_1 delay_18s"></span></div>

<div class="slide_show_timer_progress_bar1_5"><span class="slide_show_timer_progress_bar1_5_1 delay_24s"></span></div>

CSSstyle.cssdownload

.slide_show_timer_progress_bar1_5{
	display: inline-block;
	width: 3rem;
	height: 0.3rem;
	border: 1px solid #ccc;
}
.slide_show_timer_progress_bar1_5_1{
	display: block;
	width: 100%;
	height: 100%;
	background-color: #fff;
	animation: slide_show_timer_progress_bar1_5 30s 0s linear infinite;
}

/* アニメーションを時間差で開始する */
.delay_6s{
	animation-delay: 6s;
}
.delay_12s{
	animation-delay: 12s;
}
.delay_18s{
	animation-delay: 18s;
}
.delay_24s{
	animation-delay: 24s;
}

/* アニメーション */
@keyframes slide_show_timer_progress_bar1_5{

	0%{
		opacity: 1;
		width: 0;
		background-color: #ccc;
	}

	19%{
		opacity: 1;
		width: 3rem;
		background-color: #ccc;
	}

	20%{
		opacity: 0;
	}

	100%{
		opacity: 0;
	}
}
© 2025 wayday