Notice
Recent Posts
Recent Comments
Tags
- jquery 바코드
- 하드 마이그레이션
- javascript 유효성체크
- 바코드 스캔하기
- XSS방어
- XSS PHP
- Mac Oracle
- 맥 오라클설치
- asp.net core Select
- ViewData
- 말줄임표시
- django 엑셀불러오기
- 파일업로드 체크
- php 캐쉬제거
- javascript 바코드스캔
- javascript redirection
- asp.net Select
- SSD 복사
- 강제이동
- 바코드 생성하기
- ViewBag
- ASP.Net Core 404
- 하드 윈도우 복사
- javascript 바코드 생성
- TempData
- 타임피커
- 파일업로드 유효성체크
- asp.net dropdownlist
- jquery 바코드생성
- 404에러페이지
웹개발자의 기지개
CSS 그라데이션 배경색 넣기 본문
(1) 그라데이션 배경색 예제 1
1
2
3
4
5
6
7
8
9
|
<style>
.banner100 {
width:100%;
height:300px;
background: linear-gradient(to bottom, #405166 0%,#656f6f 100%);
}
</style>
<div class='banner100'></div>
|
cs |
(2) 그라데이션 배경색 예제 2
1
2
3
4
5
6
7
8
9
|
<style>
.banner102 {
width:100%;
height:300px;
background-image: radial-gradient(50% 176%, #253854 80%, #061922 100%);
}
</style>
<div class="banner102"></div>
|
cs |
(3) 그라데이션 배경색 예제3 - 눈내리는 풍경
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
|
@import url('https://fonts.googleapis.com/css?family=Corben:700');
.hero {
width:100%;
background-image: radial-gradient(50% 176%, #253854 80%, #061922 100%);
/*
// min-height: 100vh;
*/
min-height: 25rem;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-content: center;
align-items:center;
&__content {
position: relative;
align-self: center;
padding: 3rem 0;
}
}
.hero h1 {
font-family: 'Corben', cursive;
font-size: 3rem;
color: white;
letter-spacing: 0.1rem;
text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.66);
}
.snow {
position: absolute;
min-width: 100vw;
min-height: 100vh;
height: 100%;
width: 100%;
top: 0;
left: 0;
}
.snow .svg {
position: absolute;
width: 100%;
height: 100%;
}
#snow-top-layer {
will-change: transform;
transform: translateY(-768px);
animation: fall 22.5s infinite linear;
}
#snow-bottom-layer {
will-change: transform;
transform: translateY(-768px);
animation: fall 45s infinite linear;
}
@keyframes fall {
100% {
transform: translateY(0);
}
}
|
cs |
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
|
<div class="hero">
<div class="snow">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" preserveAspectRatio="xMidYMax slice">
<g fill="#FFF" fill-opacity=".15" transform="translate(55 42)">
<g id="snow-bottom-layer">
<ellipse cx="6" cy="1009.5" rx="6" ry="5.5"/>
<ellipse cx="138" cy="1110.5" rx="6" ry="5.5"/>
<ellipse cx="398" cy="1055.5" rx="6" ry="5.5"/>
<ellipse cx="719" cy="1284.5" rx="6" ry="5.5"/>
<ellipse cx="760" cy="1155.5" rx="6" ry="5.5"/>
<ellipse cx="635" cy="1459.5" rx="6" ry="5.5"/>
<ellipse cx="478" cy="1335.5" rx="6" ry="5.5"/>
<ellipse cx="322" cy="1414.5" rx="6" ry="5.5"/>
<ellipse cx="247" cy="1234.5" rx="6" ry="5.5"/>
<ellipse cx="154" cy="1425.5" rx="6" ry="5.5"/>
<ellipse cx="731" cy="773.5" rx="6" ry="5.5"/>
<ellipse cx="599" cy="874.5" rx="6" ry="5.5"/>
<ellipse cx="339" cy="819.5" rx="6" ry="5.5"/>
<ellipse cx="239" cy="1004.5" rx="6" ry="5.5"/>
<ellipse cx="113" cy="863.5" rx="6" ry="5.5"/>
<ellipse cx="102" cy="1223.5" rx="6" ry="5.5"/>
<ellipse cx="395" cy="1155.5" rx="6" ry="5.5"/>
<ellipse cx="826" cy="943.5" rx="6" ry="5.5"/>
<ellipse cx="626" cy="1054.5" rx="6" ry="5.5"/>
<ellipse cx="887" cy="1366.5" rx="6" ry="5.5"/>
<ellipse cx="6" cy="241.5" rx="6" ry="5.5"/>
<ellipse cx="138" cy="342.5" rx="6" ry="5.5"/>
<ellipse cx="398" cy="287.5" rx="6" ry="5.5"/>
<ellipse cx="719" cy="516.5" rx="6" ry="5.5"/>
<ellipse cx="760" cy="387.5" rx="6" ry="5.5"/>
<ellipse cx="635" cy="691.5" rx="6" ry="5.5"/>
<ellipse cx="478" cy="567.5" rx="6" ry="5.5"/>
<ellipse cx="322" cy="646.5" rx="6" ry="5.5"/>
<ellipse cx="247" cy="466.5" rx="6" ry="5.5"/>
<ellipse cx="154" cy="657.5" rx="6" ry="5.5"/>
<ellipse cx="731" cy="5.5" rx="6" ry="5.5"/>
<ellipse cx="599" cy="106.5" rx="6" ry="5.5"/>
<ellipse cx="339" cy="51.5" rx="6" ry="5.5"/>
<ellipse cx="239" cy="236.5" rx="6" ry="5.5"/>
<ellipse cx="113" cy="95.5" rx="6" ry="5.5"/>
<ellipse cx="102" cy="455.5" rx="6" ry="5.5"/>
<ellipse cx="395" cy="387.5" rx="6" ry="5.5"/>
<ellipse cx="826" cy="175.5" rx="6" ry="5.5"/>
<ellipse cx="626" cy="286.5" rx="6" ry="5.5"/>
<ellipse cx="887" cy="598.5" rx="6" ry="5.5"/>
</g>
</g>
<g fill="#FFF" fill-opacity=".3" transform="translate(65 63)">
<g id="snow-top-layer">
<circle cx="8" cy="776" r="8"/>
<circle cx="189" cy="925" r="8"/>
<circle cx="548" cy="844" r="8"/>
<circle cx="685" cy="1115" r="8"/>
<circle cx="858" cy="909" r="8"/>
<circle cx="874" cy="1438" r="8" transform="rotate(180 874 1438)"/>
<circle cx="657" cy="1256" r="8" transform="rotate(180 657 1256)"/>
<circle cx="443" cy="1372" r="8" transform="rotate(180 443 1372)"/>
<circle cx="339" cy="1107" r="8" transform="rotate(180 339 1107)"/>
<circle cx="24" cy="1305" r="8" transform="rotate(180 24 1305)"/>
<circle cx="8" cy="8" r="8"/>
<circle cx="189" cy="157" r="8"/>
<circle cx="548" cy="76" r="8"/>
<circle cx="685" cy="347" r="8"/>
<circle cx="858" cy="141" r="8"/>
<circle cx="874" cy="670" r="8" transform="rotate(180 874 670)"/>
<circle cx="657" cy="488" r="8" transform="rotate(180 657 488)"/>
<circle cx="443" cy="604" r="8" transform="rotate(180 443 604)"/>
<circle cx="339" cy="339" r="8" transform="rotate(180 339 339)"/>
<circle cx="24" cy="537" r="8" transform="rotate(180 24 537)"/>
</g>
</g>
</svg>
</div>
<div class="hero__content">
<h1>SNOW SNOW</h1>
</div>
</div>
|
cs |
'웹퍼블리싱 > CSS' 카테고리의 다른 글
[css] 반응형웹상의 이미지 크기 자동지정 (꽉채우기) (0) | 2020.05.15 |
---|---|
[css] 이미지에 그림자 넣기 - box-shadow 속성 (1) | 2020.03.15 |
Font Awesome (폰트오썸) 무료 아이콘 이용하기 (0) | 2019.12.20 |
사진 롤오버 선택시 약간 커지는 애니메이션 효과주기 (0) | 2019.12.08 |
display 의 table-row 속성 (0) | 2019.05.27 |
Comments