250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- effect
- iOS 개발자
- 애니메이션
- 자바스크립트
- xcode
- php
- MAC
- 비전공자
- button
- css3
- iPhone
- HTML
- CSS
- 비전공 개발자
- 풀스택
- javascript
- hover
- Animation
- jQuery
- IOS
- react
- 백엔드
- 개발자
- 프론트엔드
- ipad
- image
- html5
- keyframes
- SWIFT
- front-end
Archives
- Today
- Total
비전공자 개발일기
Parallax Effect 본문
728x90
SMALL
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;700&display=swap');
:root{
--color: #333;
}
body {
font-family: 'Red Hat Text', sans-serif;
}
.container {
text-align: center;
color: var(--color);
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-image: url(https://images.unsplash.com/photo-1519120944692-1a8d8cfc107f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=872&q=80);
background-size: cover;
background-position: center;
/* this is where the magic happens: */
background-attachment: fixed;
}
h1 {
font-weight: 700;
font-size: 3rem;
}
p {
max-width: 52ch;
line-height: 1.5;
padding: 1em;
}
a {
display: inline-block;
padding: 1em 3.5em;
background-color: var(--color);
color: white;
text-decoration: none;
text-transform: uppercase;
border-radius: 0.3em;
font-weight: 700;
letter-spacing: .5px;
font-size: .875rem;
}
.blank,
.other {
width: 100%;
min-height: 60vh;
background-color: var(--color);
}
.second {
background-image:url(https://images.unsplash.com/photo-1514496959998-c01c40915c5f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80);
background-attachment: fixed;
height: 1200px;
}
h3 {
font-weight: 700;
font-size: 1.6rem;
margin-top: 1em;
}
.card > a {
margin-bottom: 2em;
}
.item {
display: flex;
max-width: 320px;
background-color: white;;
flex-direction: column;
align-items: center;
border-radius: .5em;
-webkit-box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
-moz-box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
box-shadow: 0px 29px 38px -15px rgba(0,0,0,0.43);
}
.img {
width: 90%;
height: 200px;
background-color: lightgrey;
background-size: cover;
background-position: center;
margin-top: 20px;
border-radius: .3em;;
}
.img-first {
background-image: url(https://images.unsplash.com/photo-1522163182402-834f871fd851?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1606&q=80);
}
.img-second {
background-image: url(https://images.unsplash.com/photo-1628746404106-4d3843b231b3?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NHx8Y2F2aW5nfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=900&q=60);
}
.img-third {
background-image: url(https://images.unsplash.com/photo-1632853073412-782bf0279d65?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80);
}
.second {
flex-direction: row;
gap: 1.6em;
}
728x90
LIST
'HTML _CSS' 카테고리의 다른 글
CSS Focus (0) | 2022.07.14 |
---|---|
Youtube Clone (0) | 2022.07.13 |
Cubic Spinner (0) | 2022.07.10 |
CSS Wave (0) | 2022.07.04 |
Google Search Clone (0) | 2022.07.01 |