1.gsap
[code]
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>gsap 사용</title>
<style>
.sample{background-color:yellow;}
</style>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script></head>
<body>
<div class="sample">
위에서 내려옵니다.
</div>
<script>
gsap.from(".sample", {y: -100,opacity:0, duration: 1});
</script>
</body>
</html>
[/code]
2.gsap and timeline
[code]
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>gsap timeline 사용</title>
<style>
.sample{background-color:yellow;}
</style>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.12.5/dist/gsap.min.js"></script></head>
<body>
<div class="sample">
위에서 내려옵니다.
</div>
<script>
const tl = gsap.timeline();
tl.from(".sample", {y: -100,opacity:0, duration: 1});
</script>
</body>
</html>
[/code]
3.pure css
[code]
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>순수 CSS 애니메이션</title>
<style>
.sample {
background-color: yellow;
/* 애니메이션 설정 */
animation: slideDown 1s ease forwards;
}
/* 키프레임 정의 */
@keyframes slideDown {
from {
transform: translateY(-100px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
</style>
</head>
<body>
<div class="sample">
위에서 내려옵니다.
</div>
</body>
</html>
[/code]
4.jquery animate
[code]
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>top 사용</title>
<style>
.sample{background-color:yellow;}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</head>
<body>
<div class="sample">
위에서 내려옵니다.
</div>
<script>
$(".sample")
.css({ position: "relative", top: "-100px", opacity: 0 })
.animate({ top: "0px", opacity: 1 }, 1000);
</script>
</body>
</html>
[/code]
5.jquery.transit
[code]
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>jquery.transit 사용 https://github.com/rstacruz/jquery.transit</title>
<style>
.sample{background-color:yellow;}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.transit/0.9.12/jquery.transit.min.js"></script>
</head>
<body>
<div class="sample">
위에서 내려옵니다.
</div>
<script>
$(".sample")
.css({ position: "relative", translate: ['0','-100px'], opacity: 0 })
.transition({ translate: ['0','0'], opacity: 1 }, 1000);
</script>
</body>
</html>
[/code]
6.Velocity
[code]
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>Velocity 사용 https://github.com/julianshapiro/velocity</title>
<style>
.sample{background-color:yellow;}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.5.2/velocity.min.js"></script>
</head>
<body>
<div class="sample">
위에서 내려옵니다.
</div>
<script>
$(".sample")
.css({ position: "relative", top: "-100px", opacity: 0 })
.velocity({ top: "0px", opacity: 1 }, {duration: 1000});
</script>
</body>
</html>
[/code]
게시글 목록
| 번호 | 제목 |
|---|---|
| 17523 | |
| 17516 | |
| 17515 | |
| 17514 |
PHP
PHP 배열순설정
1
|
| 17498 |
PHP
PHP로 PDF파일 다루기
4
|
| 17493 | |
| 17490 | |
| 17487 | |
| 17485 |
JavaScript
jQuery없이 네티브자바스크립트로 서버에 요청보내기 7 - JSONP
5
|
| 17481 |
JavaScript
jQuery없이 네티브자바스크립트로 서버에 요청보내기 6- CORS
1
|
| 17478 |
JavaScript
jQuery없이 네티브자바스크립트로 서버에 요청보내기5- 파일업로드
1
|
| 17477 | |
| 17474 | |
| 17473 |
JavaScript
jQuery없이 네티브자바스크립트로 서버에 요청보내기4 - JSON
|
| 17472 | |
| 17470 |
JavaScript
jQuery없이 네티브자바스크립트로 서버에 요청보내기2 - POST
|
| 17469 |
JavaScript
jQuery없이 네티브자바스크립트로 서버에 요청보내기1 - GET
2
|
| 17463 |
JavaScript
express로 간단한 부트스트랩 내비게이션 메뉴 생성기(아주 쉬움)
|
| 17462 | |
| 17461 |
PHP
PHP로 채트서버 만들기
|
| 17460 |
JavaScript
ThreeJS로 3디 지구 만들기
|
| 17458 | |
| 17457 |
PHP
PHP 랜덤생성하기
|
| 17454 | |
| 17453 |
MySQL
DB백업코드
5
|
| 17448 |
JavaScript
숫자에 천단위로 콤마(,) 찍기
11
|
| 17447 | |
| 17446 | |
| 17445 | |
| 17444 |
node.js
nodejs 에서 CSV파일 파싱하여 배열로 변환하기
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기