일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- php
- #cgimall
- #쇼핑몰
- #홈페이지제작
- #뉴스
- 사이트제작
- javascript
- #웹솔루션
- #happycgi
- 홈페이지
- #업종별
- 웹솔루션
- jquery
- #홈페이지
- CSS
- 해피씨지아이
- #해피CGI
- #CSS
- CGIMALL
- #이미지
- happycgi
- 게시판
- 쇼핑몰
- #솔루션
- #jQuery
- 홈페이지제작
- 해피CGI
- #image
- #동영상
- 솔루션
- Today
- Total
웹솔루션개발 25년 노하우! 해피CGI의 모든것
[해피CGI][cgimall] Live CSS Blur 본문
css 속성인 filter를 이용해서 이미지를 블러처리하는 방법입니다.

HTML 구조
<div class="widget center">
<div class="blur"></div>
<div class="text center">
<h1 class="">Live CSS Blur</h1>
<p>Go ahead, resize me.</p>
</div>
</div>
CSS 소스
body {
background: url("https://images.unsplash.com/photo-1486723312829-f32b4a25211b?dpr=2&auto=format&fit=crop&w=1500&h=1000&q=80&cs=tinysrgb&crop=&bg=")
no-repeat center center fixed;
background-size: cover;
}
.blur {
background: url("https://images.unsplash.com/photo-1486723312829-f32b4a25211b?dpr=2&auto=format&fit=crop&w=1500&h=1000&q=80&cs=tinysrgb&crop=&bg=")
no-repeat center center fixed;
background-size: cover;
overflow: hidden;
filter: blur(13px);
position: absolute;
height: 300px;
top: -50px;
left: -50px;
right: -50px;
bottom: -50px;
}
.widget {
border-top: 2px solid rgba(255, 255, 255, 0.5);
border-bottom: 2px solid rgba(255, 255, 255, 0.5);
height: 200px;
width: 100%;
overflow: hidden;
}
.center {
position: absolute;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
/* NOT REQUIRED */
.text {
height: 200px;
width: 340px;
}
.text h1 {
text-align: center;
text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
color: #ffffff;
margin-top: 57px;
font-family: "Lora", serif;
font-weight: 700;
font-size: 38px;
}
.text p {
text-align: center;
color: #ffffff;
text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
margin-top: 0px;
font-family: "Lato", serif;
font-weight: 400;
font-size: 22px;
}
'웹프로그램밍 자료실 > HTML 자료' 카테고리의 다른 글
[해피CGI][cgimall] Animated CSS Gradient Text 텍스트 애니메이션 (0) | 2025.03.05 |
---|---|
[해피CGI][cgimall] CSS 3D Flip Box-CSS를 활용한 3D flip 박스 (0) | 2025.02.19 |
[해피CGI][cgimall] 클릭 버튼 효과 Particle Button (0) | 2025.02.17 |
[해피CGI][cgimall] PURE CSS SIDEBAR TOGGLE MENU 사이드바 메뉴 (0) | 2024.12.19 |
[해피CGI][cgimall] 좋아요 버튼 애니메이션 Interactive splat like button (0) | 2024.12.06 |