반응형

CSS독학 32

CSS Animations (애니메이션) 사용하기

우리는 원하는 만큼 애니메이션을 만들고 재생시킬 수 있다. DOCTYPE html>html lang="kr"> head> title>The Nick Timestitle> style> @keyframes superSexyCoinFlip { from { transform: rotateX(0); } to { transform: rotateY(360deg); } } img { border: 10px solid black; border-radius: 50%; animation: superSexyCoinFlip 5s ease-in-out; } style> head> body> img src="img/pic.jpg" /> body>html>     결과  마우스 오버를 하지 않아도 이미지가 로테이트 된다. (참고) ..

2. CSS 2024.12.09

CSS Transform 3D 회전 (rotateY, rotateX)

기본 코딩DOCTYPE html>html lang="kr"> head> title>The Nick Timestitle> style> img { border: 10px solid black; border-radius: 50%; } style> head> body> img src="img/pic.jpg" /> body>html>여기서 img src는VS code에 이미지가 저장된 경로를 불러온 것   결과  자, 이제 transform 적용해 보기DOCTYPE html>html lang="kr"> head> title>The Nick Timestitle> style> img { border: 10px solid black; border-radius: 50%; transform: rotateY(85deg); ..

2. CSS 2024.12.09

CSS Transition 트렌지션 사용하기

CSS에서 Transition(트렌지션)이란? 어떤 상태에서 다른 상태로의 "변화"를 애니메이션으로 만드는 방법이다.   1. 기본 코딩DOCTYPE html>html lang="kr"> head> title>The Nick Timestitle> style> a { color: wheat; background-color: tomato; text-decoration: none; padding: 3px 5px; border-radius: 5px; } style> head> body> a href="#">Go homea> body>html>  결과버튼 완성!     2. hover 효과 적용해보기DOCTYPE html>html lang="kr"> head> title>The Nick Timestitle> st..

2. CSS 2024.12.03

CSS selection (문구 드래그 시 색상 변경하기)

DOCTYPE html>html lang="kr"> head> title>The Nick Timestitle> style> body { height: 1000vh; margin: 50px; } p::selection { background-color: yellowgreen; } style> head> body> p>안녕하세요 반갑습니다. CSS 독학 독하게 하는 중입니다.p> body>html>      결과문구를 드래그하면 yellowgreen으로 바뀜ㅋㅋ 오.. 신기해   (참고)https://developer.mozilla.org/en-US/docs/Web/CSS/::selection

2. CSS 2024.11.30

CSS 특정 단어가 포함된 placeholder 꾸미기

placeholder에 "name" 이라는 단어를 포함한 모든 input의 배경색을 pink로 설정해보기 DOCTYPE html>html lang="kr"> head> title>The Nick Timestitle> style> body { height: 1000vh; margin: 50px; } input { border: 1px solid wheat; } input:required { border-color: tomato; } input[placeholder~="name"] { background-color: pink; } style> head> body> div> form> input type="text" placeholder="First name" /> input type="text" placeh..

2. CSS 2024.11.29
반응형