728x90
반응형
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
body {
position: relative;
height: 100vh;
overflow: hidden;
}
.image {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
transform: scale(1.8);
animation: scaleImage 5s ease-out forwards;
}
.text {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
font-family: 'Roboto', Arial, sans-serif;
font-size: calc(10px + 8vw);
font-weight: 700;
line-height: 1.2;
letter-spacing: 0.05em;
white-space: nowrap;
text-transform: uppercase;
color: #fff;
background-color: #000;
mix-blend-mode: multiply;
opacity: 0;
animation: fadeInText 3s 2s ease-out forwards;
}
@keyframes scaleImage {
100% {
transform: scale(1);
}
}
@keyframes fadeInText {
100% {
opacity: 1;
}
}
</style>
</head>
<body>
<img src="https://source.unsplash.com/VW8MUbHyxCU/1920x1080" alt="" class="image">
<h1 class="text">Homzzang.com</h1>
</body>
</html>
https://jess2.xyz/css/fade-in-out/
[CSS] Fade In / Fade Out Animation 추가하기
CSS 만으로 서서히 나타나고 서서히 사라지는 애니메이션을 구현할 수 있다. 우선, 애니메이션 속성에 대해 알아보자. Animation Animation 속성은 애니메이션에 이름을 지정하거나 지속시간, 속도 조
jess2.xyz
https://homzzang.com/b/css-318
홈짱닷컴
홈페이지 제작, 그누보드 강의, 웹코딩, HTML, CSS, JAVASCRIPT, JQUERY, PHP, SQL
homzzang.com
728x90
반응형
'Web Programming > CSS' 카테고리의 다른 글
CSS / 버튼 스타일 모음 / 버튼 디자인 해주는 사이트 (0) | 2021.09.07 |
---|---|
CSS / 통통 튀는 애니메이션 (0) | 2021.09.07 |
CSS / transform:scale() / 마우스 오버(hover) 시 확대되는 이미지 (0) | 2021.07.22 |