📝 노트로 돌아가기
이전글 2024.12.16 [html, css]
다음글 2024.12.18 [html, css]
input 관련 참고하면 좋은 글
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
<input>: The HTML Input element - HTML: HyperText Markup Language | MDN
The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input> element
developer.mozilla.org
See the Pen input type by se.eun (@se-eun) on CodePen.
이메일 제출 형식__메세지출력이벤트
See the Pen email 형식 만들기 by se.eun (@se-eun) on CodePen.
function Form1__init(){
$('.form-1 input[type="email"]').focus(function(){
$(this).addClass('focused');
})
}
Form1__init();
password 숨김/보임 이벤트
See the Pen password - 숨김/보임 by se.eun (@se-eun) on CodePen.
$('.box_1>.mode').click(function(){
let $box1=$(this).parent();
let $input=$(this).prev();
if($box1.hasClass('text')){
$box1.removeClass('text');
$input.attr('type','password');
}else{
$box1.addClass('text');
$input.attr('type','text');
}
})
Masonry 라이브러리
핀터레스트처럼 화면 크기에 맞춰서 그리드맞춰주는 라이브러리
See the Pen 실무 팁 - Masonry 사용법 by se.eun (@se-eun) on CodePen.
smooth scrollbar custom
//css
html>body .scrollbar-thumb{
background-color: #f20071;
}
//javascript
Scrollbar.init(document.querySelector('body'));
마우스를 올리면 hover 애니메이션
span:hover::after{
animation-name: ani-1;
animation-duration: .6s;
animation-iteration-count: 1;
animation-fill-mode: ease-in-out;
}
@keyframes ani-1{
10%{
width: 0;
}
40%{
width: 100%;
}
80%{
width: 85%;
}
100%{
width: 100%;
}
}
aos library
https://michalsnik.github.io/aos/
AOS - Animate on scroll library
AOS Animate On Scroll Library Scroll down
michalsnik.github.io
'📝 study > html, css, javascript' 카테고리의 다른 글
| 2024.12.19 [html, css, javascript] (5) | 2024.12.19 |
|---|---|
| 2024.12.18 [html, css, javascript] 스와이퍼, swiper 사용하기 (2) | 2024.12.18 |
| 2024.12.16 [html, css, javascript] 간단한 header기능 (2) | 2024.12.16 |
| 2024.12.09 [html, css, javascript] 탭메뉴 (TAB-MENU) (2) | 2024.12.09 |
| 2024.12.06 [html, css, javascript] FAQ 구현 (1) | 2024.12.06 |