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 |
Tags
- angular animation
- angular route
- scroll
- 아이오닉 스크롤 이벤트
- TAILWIND
- Router
- Oracle LISTAGG 사용 예시
- 앵귤러 애니메이션
- modal
- 스크롤 이벤트
- 검색
- 호버
- prisma
- angular modal
- ajax 사용 예시
- 모달
- Ionic modal
- 스크롤 이벤트 감지
- Angular Router
- ApexChart
- egov spring ajax 사용 예시
- summary
- flex-1
- formgroup
- angular button
- 앵귤러 모달
- 옵저버블
- mysql if
- route
- 셀렉트박스 커스텀
Archives
- Today
- Total
깜놀하는 해므찌로
Angular floating animation example / 앵귤러 구름 둥둥 애니메이션 앵귤러 애니메이션 파라미터 / angular animation parameter param 본문
IT
Angular floating animation example / 앵귤러 구름 둥둥 애니메이션 앵귤러 애니메이션 파라미터 / angular animation parameter param
agnusdei1207 2023. 7. 24. 13:31반응형
SMALL
export const bounce = [
trigger('bounce', [
state('true', style({ transform: 'translateY(0px)' })),
state('false', style({ transform: 'translateY(-20px)' })),
transition('* <=> *', [animate('{{ duration }}ms')], {
params: { duration: '2000' },
}),
]),
];
1. trasition : * <=> * 무한 반복을 위해 사용합니다. 어떤 상태값으로 이동하던 발동되도록 설정
2. duration 파라미터를 사용하며 기본 값 2000ms 설정
import { bounce } from '../../animations/scroll-animation/intro.animations';
animations: [bounce]
bounceState = true;
3. 상태를 활용한 반복이므로 boolean 타입을 활용하겠습니다.
<!-- cloud -->
<img
[@bounce]="{value: bounceState, params: {duration: '1500'} }"
(@bounce.done)=" bounceState = !bounceState"
[src]="setCloudImage()"
class="animation-item"
/>
4. 템플릿에 적용한 모습
5. [@bounce] 애니메이션 선언
6. (@bouce.done) 애니메이션 발동 = "조건"
반응형
LIST
'IT' 카테고리의 다른 글
Angular tailwind floating animation / cloud animation 앵귤러 구름 둥둥 애니메이션 예시 (0) | 2023.07.26 |
---|---|
Angular *ngIf else 활용 예시 (0) | 2023.07.25 |
Angular file Upload 앵귤러 파일 첨부 구현 예시 / Angular Form 활용 예시 email FormGroup (0) | 2023.07.23 |
Ionic Angular Scroll to Top 앵귤러 페이지 이동 시 스크롤 최상단 배치 예시 feat.smooth (0) | 2023.07.22 |
NGX Anuglar Store 이론 및 활용 예시 (0) | 2023.07.21 |