본문 바로가기
Web

[CSS] 로딩화면 디자인

by 태옹 2021. 8. 11.

 

Bootstrap 4.6v import

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> 
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>

 

html

<!-- loading -->

<div class="loding-inner">
	<div class="spinner-grow" style="width: 2rem; height: 2rem;"
		role="status">
		<span class="sr-only">Loading...</span>
	</div>
	<div class="spinner-grow" style="width: 2rem; height: 2rem;"
		role="status">
		<span class="sr-only">Loading...</span>
	</div>
	<div class="spinner-grow" style="width: 2rem; height: 2rem;"
		role="status">
		<span class="sr-only">Loading...</span>
	</div>
	<div class="spinner-grow" style="width: 2rem; height: 2rem;"
		role="status">
		<span class="sr-only">Loading...</span>
	</div>
	<div class="spinner-grow" style="width: 2rem; height: 2rem;"
		role="status">
		<span class="sr-only">Loading...</span>
	</div>
</div>

 

css

.spinner-grow {
	margin: 0 10px 0 10px;
	color: aliceblue;
}

.loding-inner {
	position: fixed;
	width: 100%;
	z-index: 100;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	top: 0%;
	left: 0%; 
	background-color : #00000069;
}

'Web' 카테고리의 다른 글

가비아서비스를 이용한 도메인 연결  (0) 2021.06.30
[Ajax] Ajax기초  (0) 2021.06.26
[JQuery] 제이쿼리 기초  (0) 2021.06.26
스토리보드 제작 및 테이블 설계  (1) 2021.06.24
[css] 자주 쓰는 애들 메모  (2) 2021.06.20

댓글